<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>src/vfs/smbfs/helpers/include/smb.h</title>
<meta name='robots' content='noindex,nofollow' />
<meta name='generator' content='GLOBAL-6.5.7' />
<meta http-equiv='Content-Style-Type' content='text/css' />
<link rel='stylesheet' type='text/css' href='../style.css' />
</head>
<body>
<!-- beginning of fixed guide -->
<div id='guide'><ul>
<li><a href='#TOP'><img class='icon' src='../icons/first.png' alt='[^]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/last.png' alt='[v]' /></a></li>
<li><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a></li>
<li><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a></li>
<li><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a></li>
<li class='standout'><span><a href='../files/src.html'>src</a>/<a href='../files/src--vfs.html'>vfs</a>/<a href='../files/src--vfs--smbfs.html'>smbfs</a>/<a href='../files/src--vfs--smbfs--helpers.html'>helpers</a>/<a href='../files/src--vfs--smbfs--helpers--include.html'>include</a>/smb.h</span></li>
</ul></div>
<!-- end of fixed guide -->
<a id='TOP' name='TOP'></a><h2 class='header'><a href='../mains.html'>root</a>/<a href='../files/src.html'>src</a>/<a href='../files/src--vfs.html'>vfs</a>/<a href='../files/src--vfs--smbfs.html'>smbfs</a>/<a href='../files/src--vfs--smbfs--helpers.html'>helpers</a>/<a href='../files/src--vfs--smbfs--helpers--include.html'>include</a>/smb.h</h2>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><img class='icon' src='../icons/n_first.png' alt='[first]' /><img class='icon' src='../icons/n_last.png' alt='[last]' /><img class='icon' src='../icons/n_top.png' alt='[top]' /><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+1 src/vfs/smbfs/helpers/include/smb.h'  /> */</em>
<hr />
<h2 class='header'><a href='src--vfs--smbfs--helpers--include--includes.h.html#L433' title='Included from 433 in src/vfs/smbfs/helpers/include/includes.h.'>INCLUDED FROM</a></h2>
<hr />
<pre>
<a id='L1' name='L1'></a>   1 <em class='comment'>/*</em>
<a id='L2' name='L2'></a>   2 <em class='comment'>   Unix SMB/Netbios implementation.</em>
<a id='L3' name='L3'></a>   3 <em class='comment'>   Version 1.9.</em>
<a id='L4' name='L4'></a>   4 <em class='comment'>   SMB parameters and setup</em>
<a id='L5' name='L5'></a>   5 <em class='comment'> */</em>
<a id='L6' name='L6'></a>   6 <em class='sharp'>#ifndef</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L7' title='Defined at 7 in src/vfs/smbfs/helpers/include/smb.h.'>_SMB_H</a>
<a id='L7' name='L7'></a>   7 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L6' title='Referred from 6 in src/vfs/smbfs/helpers/include/smb.h.'>_SMB_H</a>
<a id='L8' name='L8'></a>   8 
<a id='L9' name='L9'></a>   9 <em class='sharp'>#define</em> <a href='../R/BUFFER_SIZE.html' title='Multiple referred from 2 places.'>BUFFER_SIZE</a> (0xFFFF)
<a id='L10' name='L10'></a>  10 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--lib--util_sock.c.html#L583' title='Referred from 583 in src/vfs/smbfs/helpers/lib/util_sock.c.'>SAFETY_MARGIN</a> 1024
<a id='L11' name='L11'></a>  11 
<a id='L12' name='L12'></a>  12 <em class='sharp'>#define</em> <a href='../R/NMB_PORT.html' title='Multiple referred from 2 places.'>NMB_PORT</a> 137
<a id='L13' name='L13'></a>  13 <em class='sharp'>#define</em> DGRAM_PORT 138
<a id='L14' name='L14'></a>  14 <em class='sharp'>#define</em> <a href='../R/SMB_PORT.html' title='Multiple referred from 3 places.'>SMB_PORT</a> 139
<a id='L15' name='L15'></a>  15 
<a id='L16' name='L16'></a>  16 <em class='sharp'>#define</em> <a href='../R/False.html' title='Multiple referred from 316 places.'>False</a> (0)
<a id='L17' name='L17'></a>  17 <em class='sharp'>#define</em> <a href='../R/True.html' title='Multiple referred from 281 places.'>True</a> (1)
<a id='L18' name='L18'></a>  18 <em class='sharp'>#define</em> <a href='../R/BOOLSTR.html' title='Multiple referred from 7 places.'>BOOLSTR</a>(<a href='../Y/b.html' title='Multiple used in 443 places.'>b</a>) ((<a href='../Y/b.html' title='Multiple used in 443 places.'>b</a>) ? "Yes" : "No")
<a id='L19' name='L19'></a>  19 <em class='sharp'>#define</em> BITSETB(<a href='../Y/ptr.html' title='Multiple used in 123 places.'>ptr</a>,<a href='../Y/bit.html' title='Multiple used in 5 places.'>bit</a>) ((((<strong class='reserved'>char</strong> *)<a href='../Y/ptr.html' title='Multiple used in 123 places.'>ptr</a>)[0] &amp; (1&lt;&lt;(<a href='../Y/bit.html' title='Multiple used in 5 places.'>bit</a>)))!=0)
<a id='L20' name='L20'></a>  20 <em class='sharp'>#define</em> BITSETW(<a href='../Y/ptr.html' title='Multiple used in 123 places.'>ptr</a>,<a href='../Y/bit.html' title='Multiple used in 5 places.'>bit</a>) ((<a href='../D/SVAL.html' title='Multiple defined in 2 places.'>SVAL</a>(<a href='../Y/ptr.html' title='Multiple used in 123 places.'>ptr</a>,0) &amp; (1&lt;&lt;(<a href='../Y/bit.html' title='Multiple used in 5 places.'>bit</a>)))!=0)
<a id='L21' name='L21'></a>  21 
<a id='L22' name='L22'></a>  22 <em class='sharp'>#define</em> <a href='../R/IS_BITS_SET_ALL.html' title='Multiple referred from 3 places.'>IS_BITS_SET_ALL</a>(<a href='../Y/var.html' title='Multiple used in 6 places.'>var</a>,<a href='../Y/bit.html' title='Multiple used in 5 places.'>bit</a>) (((<a href='../Y/var.html' title='Multiple used in 6 places.'>var</a>)&amp;(<a href='../Y/bit.html' title='Multiple used in 5 places.'>bit</a>))==(<a href='../Y/bit.html' title='Multiple used in 5 places.'>bit</a>))
<a id='L23' name='L23'></a>  23 <em class='sharp'>#define</em> IS_BITS_SET_SOME(<a href='../Y/var.html' title='Multiple used in 6 places.'>var</a>,<a href='../Y/bit.html' title='Multiple used in 5 places.'>bit</a>) (((<a href='../Y/var.html' title='Multiple used in 6 places.'>var</a>)&amp;(<a href='../Y/bit.html' title='Multiple used in 5 places.'>bit</a>))!=0)
<a id='L24' name='L24'></a>  24 <em class='sharp'>#define</em> IS_BITS_CLR_ALL(<a href='../Y/var.html' title='Multiple used in 6 places.'>var</a>,<a href='../Y/bit.html' title='Multiple used in 5 places.'>bit</a>) (((<a href='../Y/var.html' title='Multiple used in 6 places.'>var</a>)&amp;(<a href='../Y/bit.html' title='Multiple used in 5 places.'>bit</a>))==0)
<a id='L25' name='L25'></a>  25 
<a id='L26' name='L26'></a>  26 <em class='sharp'>#define</em> <a href='../R/PTR_DIFF.html' title='Multiple referred from 23 places.'>PTR_DIFF</a>(<a href='../Y/p1.html' title='Multiple used in 70 places.'>p1</a>,<a href='../Y/p2.html' title='Multiple used in 88 places.'>p2</a>) ((<a href='../Y/ptrdiff_t.html' title='Multiple used in 3 places.'>ptrdiff_t</a>)(((<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *)(<a href='../Y/p1.html' title='Multiple used in 70 places.'>p1</a>)) - (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *)(<a href='../Y/p2.html' title='Multiple used in 88 places.'>p2</a>)))
<a id='L27' name='L27'></a>  27 
<a id='L28' name='L28'></a>  28 <strong class='reserved'>typedef</strong> <strong class='reserved'>int</strong> <a href='../R/BOOL.html' title='Multiple referred from 576 places.'>BOOL</a>;
<a id='L29' name='L29'></a>  29 
<a id='L30' name='L30'></a>  30 <em class='comment'>/* limiting size of ipc replies */</em>
<a id='L31' name='L31'></a>  31 <em class='sharp'>#define</em> REALLOC(<a href='../Y/ptr.html' title='Multiple used in 123 places.'>ptr</a>,<a href='../Y/size.html' title='Multiple used in 387 places.'>size</a>) <a href='../D/Realloc.html' title='Multiple defined in 3 places.'>Realloc</a>(<a href='../Y/ptr.html' title='Multiple used in 123 places.'>ptr</a>,<a href='../D/MAX.html' title='Multiple defined in 2 places.'>MAX</a>((<a href='../Y/size.html' title='Multiple used in 387 places.'>size</a>),4*1024))
<a id='L32' name='L32'></a>  32 
<a id='L33' name='L33'></a>  33 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--lib--util.c.html#L564' title='Referred from 564 in src/vfs/smbfs/helpers/lib/util.c.'>SIZEOFWORD</a> 2
<a id='L34' name='L34'></a>  34 
<a id='L35' name='L35'></a>  35 <em class='sharp'>#ifndef</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L36' title='Defined at 36 in src/vfs/smbfs/helpers/include/smb.h.'>DEF_CREATE_MASK</a>
<a id='L36' name='L36'></a>  36 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L35' title='Referred from 35 in src/vfs/smbfs/helpers/include/smb.h.'>DEF_CREATE_MASK</a> (0755)
<a id='L37' name='L37'></a>  37 <em class='sharp'>#endif</em>
<a id='L38' name='L38'></a>  38 
<a id='L39' name='L39'></a>  39 <em class='comment'>/* how long to wait for secondary SMB packets (milli-seconds) */</em>
<a id='L40' name='L40'></a>  40 <em class='sharp'>#define</em> SMB_SECONDARY_WAIT (60*1000)
<a id='L41' name='L41'></a>  41 
<a id='L42' name='L42'></a>  42 <em class='comment'>/* -------------------------------------------------------------------------- **</em>
<a id='L43' name='L43'></a>  43 <em class='comment'> * Debugging code.  See also debug.c</em>
<a id='L44' name='L44'></a>  44 <em class='comment'> */</em>
<a id='L45' name='L45'></a>  45 
<a id='L46' name='L46'></a>  46 <em class='comment'>/* mkproto.awk has trouble with ifdef'd function definitions (it ignores</em>
<a id='L47' name='L47'></a>  47 <em class='comment'> * the #ifdef directive and will read both definitions, thus creating two</em>
<a id='L48' name='L48'></a>  48 <em class='comment'> * diffferent prototype declarations), so we must do these by hand.</em>
<a id='L49' name='L49'></a>  49 <em class='comment'> */</em>
<a id='L50' name='L50'></a>  50 <em class='comment'>/* I know the __attribute__ stuff is ugly, but it does ensure we get the </em>
<a id='L51' name='L51'></a>  51 <em class='comment'>   arguments to DEBUG() right. We have got them wrong too often in the </em>
<a id='L52' name='L52'></a>  52 <em class='comment'>   past */</em>
<a id='L53' name='L53'></a>  53 <em class='sharp'>#ifdef</em> <a href='../Y/HAVE_STDARG_H.html' title='Multiple used in 9 places.'>HAVE_STDARG_H</a>
<a id='L54' name='L54'></a>  54 <strong class='reserved'>int</strong>
<a id='L55' name='L55'></a>  55 <a href='../D/Debug1.html' title='Multiple defined in 2 places.'>Debug1</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, ...)
<a id='L56' name='L56'></a>  56 <em class='sharp'>#ifdef</em> <a href='../Y/__GNUC__.html' title='Multiple used in 4 places.'>__GNUC__</a>
<a id='L57' name='L57'></a>  57     <strong class='reserved'>__attribute__</strong> ((<a href='../Y/format.html' title='Multiple used in 125 places.'>format</a> (<a href='../Y/printf.html' title='Multiple used in 63 places.'>printf</a>, 1, 2)))
<a id='L58' name='L58'></a>  58 <em class='sharp'>#endif</em>
<a id='L59' name='L59'></a>  59     ;
<a id='L60' name='L60'></a>  60      <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> <a href='../D/dbgtext.html' title='Multiple defined in 2 places.'>dbgtext</a> (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, ...)
<a id='L61' name='L61'></a>  61 <em class='sharp'>#ifdef</em> <a href='../Y/__GNUC__.html' title='Multiple used in 4 places.'>__GNUC__</a>
<a id='L62' name='L62'></a>  62     <strong class='reserved'>__attribute__</strong> ((<a href='../Y/format.html' title='Multiple used in 125 places.'>format</a> (<a href='../Y/printf.html' title='Multiple used in 63 places.'>printf</a>, 1, 2)))
<a id='L63' name='L63'></a>  63 <em class='sharp'>#endif</em>
<a id='L64' name='L64'></a>  64     ;
<a id='L65' name='L65'></a>  65 <em class='sharp'>#else</em>
<a id='L66' name='L66'></a>  66 <strong class='reserved'>int</strong> <a href='../D/Debug1.html' title='Multiple defined in 2 places.'>Debug1</a> ();
<a id='L67' name='L67'></a>  67 <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> <a href='../D/dbgtext.html' title='Multiple defined in 2 places.'>dbgtext</a> ();
<a id='L68' name='L68'></a>  68 <em class='sharp'>#endif</em>
<a id='L69' name='L69'></a>  69 
<a id='L70' name='L70'></a>  70 <em class='comment'>/* If we have these macros, we can add additional info to the header. */</em>
<a id='L71' name='L71'></a>  71 <em class='sharp'>#ifdef</em> HAVE_FILE_MACRO
<a id='L72' name='L72'></a>  72 <em class='sharp'>#define</em> <a href='../R/FILE_MACRO.html' title='Multiple referred from 3 places.'>FILE_MACRO</a> (<a href='../Y/__FILE__.html' title='Multiple used in 7 places.'>__FILE__</a>)
<a id='L73' name='L73'></a>  73 <em class='sharp'>#else</em>
<a id='L74' name='L74'></a>  74 <em class='sharp'>#define</em> <a href='../R/FILE_MACRO.html' title='Multiple referred from 3 places.'>FILE_MACRO</a> ("")
<a id='L75' name='L75'></a>  75 <em class='sharp'>#endif</em>
<a id='L76' name='L76'></a>  76 
<a id='L77' name='L77'></a>  77 <em class='sharp'>#ifdef</em> HAVE_FUNCTION_MACRO
<a id='L78' name='L78'></a>  78 <em class='sharp'>#define</em> <a href='../R/FUNCTION_MACRO.html' title='Multiple referred from 3 places.'>FUNCTION_MACRO</a>  (__FUNCTION__)
<a id='L79' name='L79'></a>  79 <em class='sharp'>#else</em>
<a id='L80' name='L80'></a>  80 <em class='sharp'>#define</em> <a href='../R/FUNCTION_MACRO.html' title='Multiple referred from 3 places.'>FUNCTION_MACRO</a>  ("")
<a id='L81' name='L81'></a>  81 <em class='sharp'>#endif</em>
<a id='L82' name='L82'></a>  82 
<a id='L83' name='L83'></a>  83 <em class='comment'>/* Debugging macros. </em>
<a id='L84' name='L84'></a>  84 <em class='comment'> *  DEBUGLVL() - If level is &lt;= the system-wide DEBUGLEVEL then generate a</em>
<a id='L85' name='L85'></a>  85 <em class='comment'> *               header using the default macros for file, line, and</em>
<a id='L86' name='L86'></a>  86 <em class='comment'> *               function name.</em>
<a id='L87' name='L87'></a>  87 <em class='comment'> *               Returns True if the debug level was &lt;= DEBUGLEVEL.</em>
<a id='L88' name='L88'></a>  88 <em class='comment'> *               Example usage:</em>
<a id='L89' name='L89'></a>  89 <em class='comment'> *                 if( DEBUGLVL( 2 ) )</em>
<a id='L90' name='L90'></a>  90 <em class='comment'> *                   dbgtext( "Some text.\n" );</em>
<a id='L91' name='L91'></a>  91 <em class='comment'> *  DEGUG()    - Good old DEBUG().  Each call to DEBUG() will generate a new</em>
<a id='L92' name='L92'></a>  92 <em class='comment'> *               header *unless* the previous debug output was unterminated</em>
<a id='L93' name='L93'></a>  93 <em class='comment'> *               (i.e., no '\n').  See debug.c:dbghdr() for more info.</em>
<a id='L94' name='L94'></a>  94 <em class='comment'> *               Example usage:</em>
<a id='L95' name='L95'></a>  95 <em class='comment'> *                 DEBUG( 2, ("Some text.\n") );</em>
<a id='L96' name='L96'></a>  96 <em class='comment'> *  DEBUGADD() - If level &lt;= DEBUGLEVEL, then the text is appended to the</em>
<a id='L97' name='L97'></a>  97 <em class='comment'> *               current message (i.e., no header).</em>
<a id='L98' name='L98'></a>  98 <em class='comment'> *               Usage:</em>
<a id='L99' name='L99'></a>  99 <em class='comment'> *                 DEBUGADD( 2, ("Some additional text.\n") );</em>
<a id='L100' name='L100'></a> 100 <em class='comment'> */</em>
<a id='L101' name='L101'></a> 101 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--nmblib.c.html#L117' title='Referred from 117 in src/vfs/smbfs/helpers/libsmb/nmblib.c.'>DEBUGLVL</a>( <a href='../Y/level.html' title='Multiple used in 49 places.'>level</a> ) \
<a id='L102' name='L102'></a> 102   ( (<a href='../Y/DEBUGLEVEL.html' title='Multiple used in 35 places.'>DEBUGLEVEL</a> &gt;= (<a href='../Y/level.html' title='Multiple used in 49 places.'>level</a>)) \
<a id='L103' name='L103'></a> 103    &amp;&amp; <a href='../S/src--vfs--smbfs--helpers--lib--debug.c.html#L316' title='Defined at 316 in src/vfs/smbfs/helpers/lib/debug.c.'>dbghdr</a>( <a href='../Y/level.html' title='Multiple used in 49 places.'>level</a>, <a href='../D/FILE_MACRO.html' title='Multiple defined in 2 places.'>FILE_MACRO</a>, <a href='../D/FUNCTION_MACRO.html' title='Multiple defined in 2 places.'>FUNCTION_MACRO</a>, (<a href='../Y/__LINE__.html' title='Multiple used in 8 places.'>__LINE__</a>) ) )
<a id='L104' name='L104'></a> 104 
<a id='L105' name='L105'></a> 105 <em class='sharp'>#if</em> 0
<a id='L106' name='L106'></a> 106 
<a id='L107' name='L107'></a> 107 <em class='sharp'>#define</em> <a href='../R/DEBUG.html' title='Multiple referred from 384 places.'>DEBUG</a>( <a href='../Y/level.html' title='Multiple used in 49 places.'>level</a>, <a href='../Y/body.html' title='Multiple used in 8 places.'>body</a> ) \
<a id='L108' name='L108'></a> 108   ( ( <a href='../Y/DEBUGLEVEL.html' title='Multiple used in 35 places.'>DEBUGLEVEL</a> &gt;= (<a href='../Y/level.html' title='Multiple used in 49 places.'>level</a>) \
<a id='L109' name='L109'></a> 109    &amp;&amp; <a href='../S/src--vfs--smbfs--helpers--lib--debug.c.html#L316' title='Defined at 316 in src/vfs/smbfs/helpers/lib/debug.c.'>dbghdr</a>( <a href='../Y/level.html' title='Multiple used in 49 places.'>level</a>, <a href='../D/FILE_MACRO.html' title='Multiple defined in 2 places.'>FILE_MACRO</a>, <a href='../D/FUNCTION_MACRO.html' title='Multiple defined in 2 places.'>FUNCTION_MACRO</a>, (<a href='../Y/__LINE__.html' title='Multiple used in 8 places.'>__LINE__</a>) ) ) \
<a id='L110' name='L110'></a> 110       ? (<strong class='reserved'>void</strong>)(<a href='../D/dbgtext.html' title='Multiple defined in 2 places.'>dbgtext</a> <a href='../Y/body.html' title='Multiple used in 8 places.'>body</a>) : (<strong class='reserved'>void</strong>)0 )
<a id='L111' name='L111'></a> 111 
<a id='L112' name='L112'></a> 112 <em class='sharp'>#define</em> <a href='../R/DEBUGADD.html' title='Multiple referred from 11 places.'>DEBUGADD</a>( <a href='../Y/level.html' title='Multiple used in 49 places.'>level</a>, <a href='../Y/body.html' title='Multiple used in 8 places.'>body</a> ) \
<a id='L113' name='L113'></a> 113      ( (<a href='../Y/DEBUGLEVEL.html' title='Multiple used in 35 places.'>DEBUGLEVEL</a> &gt;= (<a href='../Y/level.html' title='Multiple used in 49 places.'>level</a>)) ? (<strong class='reserved'>void</strong>)(<a href='../D/dbgtext.html' title='Multiple defined in 2 places.'>dbgtext</a> <a href='../Y/body.html' title='Multiple used in 8 places.'>body</a>) : (<strong class='reserved'>void</strong>)0 )
<a id='L114' name='L114'></a> 114 
<a id='L115' name='L115'></a> 115 <em class='sharp'>#else</em>
<a id='L116' name='L116'></a> 116 
<a id='L117' name='L117'></a> 117 <em class='sharp'>#define</em> <a href='../R/DEBUG.html' title='Multiple referred from 384 places.'>DEBUG</a>( <a href='../Y/level.html' title='Multiple used in 49 places.'>level</a>, <a href='../Y/body.html' title='Multiple used in 8 places.'>body</a> ) \
<a id='L118' name='L118'></a> 118   (<strong class='reserved'>void</strong>)( (<a href='../Y/DEBUGLEVEL.html' title='Multiple used in 35 places.'>DEBUGLEVEL</a> &gt;= (<a href='../Y/level.html' title='Multiple used in 49 places.'>level</a>)) \
<a id='L119' name='L119'></a> 119        &amp;&amp; (<a href='../S/src--vfs--smbfs--helpers--lib--debug.c.html#L316' title='Defined at 316 in src/vfs/smbfs/helpers/lib/debug.c.'>dbghdr</a>( <a href='../Y/level.html' title='Multiple used in 49 places.'>level</a>, <a href='../D/FILE_MACRO.html' title='Multiple defined in 2 places.'>FILE_MACRO</a>, <a href='../D/FUNCTION_MACRO.html' title='Multiple defined in 2 places.'>FUNCTION_MACRO</a>, (<a href='../Y/__LINE__.html' title='Multiple used in 8 places.'>__LINE__</a>) )) \
<a id='L120' name='L120'></a> 120        &amp;&amp; (<a href='../D/dbgtext.html' title='Multiple defined in 2 places.'>dbgtext</a> <a href='../Y/body.html' title='Multiple used in 8 places.'>body</a>) )
<a id='L121' name='L121'></a> 121 
<a id='L122' name='L122'></a> 122 <em class='sharp'>#define</em> <a href='../R/DEBUGADD.html' title='Multiple referred from 11 places.'>DEBUGADD</a>( <a href='../Y/level.html' title='Multiple used in 49 places.'>level</a>, <a href='../Y/body.html' title='Multiple used in 8 places.'>body</a> ) \
<a id='L123' name='L123'></a> 123   (<strong class='reserved'>void</strong>)( (<a href='../Y/DEBUGLEVEL.html' title='Multiple used in 35 places.'>DEBUGLEVEL</a> &gt;= (<a href='../Y/level.html' title='Multiple used in 49 places.'>level</a>)) &amp;&amp; (<a href='../D/dbgtext.html' title='Multiple defined in 2 places.'>dbgtext</a> <a href='../Y/body.html' title='Multiple used in 8 places.'>body</a>) )
<a id='L124' name='L124'></a> 124 
<a id='L125' name='L125'></a> 125 <em class='sharp'>#endif</em>
<a id='L126' name='L126'></a> 126 
<a id='L127' name='L127'></a> 127 <em class='comment'>/* End Debugging code section.</em>
<a id='L128' name='L128'></a> 128 <em class='comment'> * -------------------------------------------------------------------------- **</em>
<a id='L129' name='L129'></a> 129 <em class='comment'> */</em>
<a id='L130' name='L130'></a> 130 
<a id='L131' name='L131'></a> 131 <em class='comment'>/* this defines the error codes that receive_smb can put in smb_read_error */</em>
<a id='L132' name='L132'></a> 132 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--lib--util_sock.c.html#L346' title='Referred from 346 in src/vfs/smbfs/helpers/lib/util_sock.c.'>READ_TIMEOUT</a> 1
<a id='L133' name='L133'></a> 133 <em class='sharp'>#define</em> <a href='../R/READ_EOF.html' title='Multiple referred from 3 places.'>READ_EOF</a> 2
<a id='L134' name='L134'></a> 134 <em class='sharp'>#define</em> <a href='../R/READ_ERROR.html' title='Multiple referred from 5 places.'>READ_ERROR</a> 3
<a id='L135' name='L135'></a> 135 
<a id='L136' name='L136'></a> 136 
<a id='L137' name='L137'></a> 137 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--lib--util.c.html#L951' title='Referred from 951 in src/vfs/smbfs/helpers/lib/util.c.'>DIR_STRUCT_SIZE</a> 43
<a id='L138' name='L138'></a> 138 
<a id='L139' name='L139'></a> 139 <em class='comment'>/* these define all the command types recognised by the server - there</em>
<a id='L140' name='L140'></a> 140 <em class='comment'>   are lots of gaps so probably there are some rare commands that are not</em>
<a id='L141' name='L141'></a> 141 <em class='comment'>   implemented */</em>
<a id='L142' name='L142'></a> 142 
<a id='L143' name='L143'></a> 143 <em class='sharp'>#define</em> pSETDIR '\377'
<a id='L144' name='L144'></a> 144 
<a id='L145' name='L145'></a> 145 <em class='comment'>/* these define the attribute byte as seen by DOS */</em>
<a id='L146' name='L146'></a> 146 <em class='sharp'>#define</em> <a href='../R/aRONLY.html' title='Multiple referred from 4 places.'>aRONLY</a> (1L&lt;&lt;0)
<a id='L147' name='L147'></a> 147 <em class='sharp'>#define</em> <a href='../R/aHIDDEN.html' title='Multiple referred from 9 places.'>aHIDDEN</a> (1L&lt;&lt;1)
<a id='L148' name='L148'></a> 148 <em class='sharp'>#define</em> <a href='../R/aSYSTEM.html' title='Multiple referred from 8 places.'>aSYSTEM</a> (1L&lt;&lt;2)
<a id='L149' name='L149'></a> 149 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--lib--util.c.html#L440' title='Referred from 440 in src/vfs/smbfs/helpers/lib/util.c.'>aVOLID</a> (1L&lt;&lt;3)
<a id='L150' name='L150'></a> 150 <em class='sharp'>#define</em> <a href='../R/aDIR.html' title='Multiple referred from 7 places.'>aDIR</a> (1L&lt;&lt;4)
<a id='L151' name='L151'></a> 151 <em class='sharp'>#define</em> <a href='../R/aARCH.html' title='Multiple referred from 5 places.'>aARCH</a> (1L&lt;&lt;5)
<a id='L152' name='L152'></a> 152 
<a id='L153' name='L153'></a> 153 <em class='comment'>/* for readability... */</em>
<a id='L154' name='L154'></a> 154 <em class='sharp'>#define</em> IS_DOS_READONLY(<a href='../Y/test_mode.html' title='Multiple used in 7 places.'>test_mode</a>) (((<a href='../Y/test_mode.html' title='Multiple used in 7 places.'>test_mode</a>) &amp; <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L146' title='Defined at 146 in src/vfs/smbfs/helpers/include/smb.h.'>aRONLY</a>) != 0)
<a id='L155' name='L155'></a> 155 <em class='sharp'>#define</em> IS_DOS_DIR(<a href='../Y/test_mode.html' title='Multiple used in 7 places.'>test_mode</a>) (((<a href='../Y/test_mode.html' title='Multiple used in 7 places.'>test_mode</a>) &amp; <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L150' title='Defined at 150 in src/vfs/smbfs/helpers/include/smb.h.'>aDIR</a>) != 0)
<a id='L156' name='L156'></a> 156 <em class='sharp'>#define</em> IS_DOS_ARCHIVE(<a href='../Y/test_mode.html' title='Multiple used in 7 places.'>test_mode</a>) (((<a href='../Y/test_mode.html' title='Multiple used in 7 places.'>test_mode</a>) &amp; <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L151' title='Defined at 151 in src/vfs/smbfs/helpers/include/smb.h.'>aARCH</a>) != 0)
<a id='L157' name='L157'></a> 157 <em class='sharp'>#define</em> IS_DOS_SYSTEM(<a href='../Y/test_mode.html' title='Multiple used in 7 places.'>test_mode</a>) (((<a href='../Y/test_mode.html' title='Multiple used in 7 places.'>test_mode</a>) &amp; <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L148' title='Defined at 148 in src/vfs/smbfs/helpers/include/smb.h.'>aSYSTEM</a>) != 0)
<a id='L158' name='L158'></a> 158 <em class='sharp'>#define</em> IS_DOS_HIDDEN(<a href='../Y/test_mode.html' title='Multiple used in 7 places.'>test_mode</a>) (((<a href='../Y/test_mode.html' title='Multiple used in 7 places.'>test_mode</a>) &amp; <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L147' title='Defined at 147 in src/vfs/smbfs/helpers/include/smb.h.'>aHIDDEN</a>) != 0)
<a id='L159' name='L159'></a> 159 
<a id='L160' name='L160'></a> 160 <em class='comment'>/* deny modes */</em>
<a id='L161' name='L161'></a> 161 <em class='sharp'>#define</em> DENY_DOS 0
<a id='L162' name='L162'></a> 162 <em class='sharp'>#define</em> DENY_ALL 1
<a id='L163' name='L163'></a> 163 <em class='sharp'>#define</em> DENY_WRITE 2
<a id='L164' name='L164'></a> 164 <em class='sharp'>#define</em> DENY_READ 3
<a id='L165' name='L165'></a> 165 <em class='sharp'>#define</em> <a href='../R/DENY_NONE.html' title='Multiple referred from 2 places.'>DENY_NONE</a> 4
<a id='L166' name='L166'></a> 166 <em class='sharp'>#define</em> DENY_FCB 7
<a id='L167' name='L167'></a> 167 
<a id='L168' name='L168'></a> 168 <em class='comment'>/* open modes */</em>
<a id='L169' name='L169'></a> 169 <em class='sharp'>#define</em> DOS_OPEN_RDONLY 0
<a id='L170' name='L170'></a> 170 <em class='sharp'>#define</em> DOS_OPEN_WRONLY 1
<a id='L171' name='L171'></a> 171 <em class='sharp'>#define</em> DOS_OPEN_RDWR 2
<a id='L172' name='L172'></a> 172 <em class='sharp'>#define</em> DOS_OPEN_FCB 0xF
<a id='L173' name='L173'></a> 173 
<a id='L174' name='L174'></a> 174 <em class='comment'>/* define shifts and masks for share and open modes. */</em>
<a id='L175' name='L175'></a> 175 <em class='sharp'>#define</em> <a href='../R/OPEN_MODE_MASK.html' title='Multiple referred from 2 places.'>OPEN_MODE_MASK</a> 0xF
<a id='L176' name='L176'></a> 176 <em class='sharp'>#define</em> <a href='../R/SHARE_MODE_SHIFT.html' title='Multiple referred from 2 places.'>SHARE_MODE_SHIFT</a> 4
<a id='L177' name='L177'></a> 177 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L180' title='Referred from 180 in src/vfs/smbfs/helpers/include/smb.h.'>SHARE_MODE_MASK</a> 0x7
<a id='L178' name='L178'></a> 178 <em class='sharp'>#define</em> GET_OPEN_MODE(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) ((<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) &amp; <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L175' title='Defined at 175 in src/vfs/smbfs/helpers/include/smb.h.'>OPEN_MODE_MASK</a>)
<a id='L179' name='L179'></a> 179 <em class='sharp'>#define</em> SET_OPEN_MODE(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) ((<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) &amp; <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L175' title='Defined at 175 in src/vfs/smbfs/helpers/include/smb.h.'>OPEN_MODE_MASK</a>)
<a id='L180' name='L180'></a> 180 <em class='sharp'>#define</em> GET_DENY_MODE(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) (((<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>)&gt;&gt;<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L176' title='Defined at 176 in src/vfs/smbfs/helpers/include/smb.h.'>SHARE_MODE_SHIFT</a>) &amp; <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L177' title='Defined at 177 in src/vfs/smbfs/helpers/include/smb.h.'>SHARE_MODE_MASK</a>)
<a id='L181' name='L181'></a> 181 <em class='sharp'>#define</em> SET_DENY_MODE(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) ((<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>)&lt;&lt;<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L176' title='Defined at 176 in src/vfs/smbfs/helpers/include/smb.h.'>SHARE_MODE_SHIFT</a>)
<a id='L182' name='L182'></a> 182 
<a id='L183' name='L183'></a> 183 <em class='comment'>/* Sync on open file (not sure if used anymore... ?) */</em>
<a id='L184' name='L184'></a> 184 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L185' title='Referred from 185 in src/vfs/smbfs/helpers/include/smb.h.'>FILE_SYNC_OPENMODE</a> (1&lt;&lt;14)
<a id='L185' name='L185'></a> 185 <em class='sharp'>#define</em> GET_FILE_SYNC_OPENMODE(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) (((<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) &amp; <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L184' title='Defined at 184 in src/vfs/smbfs/helpers/include/smb.h.'>FILE_SYNC_OPENMODE</a>) ? <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L17' title='Defined at 17 in src/vfs/smbfs/helpers/include/smb.h.'>True</a> : <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L16' title='Defined at 16 in src/vfs/smbfs/helpers/include/smb.h.'>False</a>)
<a id='L186' name='L186'></a> 186 
<a id='L187' name='L187'></a> 187 <em class='comment'>/* allow delete on open file mode (used by NT SMB's). */</em>
<a id='L188' name='L188'></a> 188 <em class='sharp'>#define</em> <a href='../R/ALLOW_SHARE_DELETE.html' title='Multiple referred from 2 places.'>ALLOW_SHARE_DELETE</a> (1&lt;&lt;15)
<a id='L189' name='L189'></a> 189 <em class='sharp'>#define</em> GET_ALLOW_SHARE_DELETE(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) (((<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) &amp; <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L188' title='Defined at 188 in src/vfs/smbfs/helpers/include/smb.h.'>ALLOW_SHARE_DELETE</a>) ? <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L17' title='Defined at 17 in src/vfs/smbfs/helpers/include/smb.h.'>True</a> : <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L16' title='Defined at 16 in src/vfs/smbfs/helpers/include/smb.h.'>False</a>)
<a id='L190' name='L190'></a> 190 <em class='sharp'>#define</em> SET_ALLOW_SHARE_DELETE(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) ((<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) ? <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L188' title='Defined at 188 in src/vfs/smbfs/helpers/include/smb.h.'>ALLOW_SHARE_DELETE</a> : 0)
<a id='L191' name='L191'></a> 191 
<a id='L192' name='L192'></a> 192 <em class='comment'>/* delete on close flag (used by NT SMB's). */</em>
<a id='L193' name='L193'></a> 193 <em class='sharp'>#define</em> <a href='../R/DELETE_ON_CLOSE_FLAG.html' title='Multiple referred from 2 places.'>DELETE_ON_CLOSE_FLAG</a> (1&lt;&lt;16)
<a id='L194' name='L194'></a> 194 <em class='sharp'>#define</em> GET_DELETE_ON_CLOSE_FLAG(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) (((<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) &amp; <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L193' title='Defined at 193 in src/vfs/smbfs/helpers/include/smb.h.'>DELETE_ON_CLOSE_FLAG</a>) ? <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L17' title='Defined at 17 in src/vfs/smbfs/helpers/include/smb.h.'>True</a> : <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L16' title='Defined at 16 in src/vfs/smbfs/helpers/include/smb.h.'>False</a>)
<a id='L195' name='L195'></a> 195 <em class='sharp'>#define</em> SET_DELETE_ON_CLOSE_FLAG(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) ((<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) ? <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L193' title='Defined at 193 in src/vfs/smbfs/helpers/include/smb.h.'>DELETE_ON_CLOSE_FLAG</a> : 0)
<a id='L196' name='L196'></a> 196 
<a id='L197' name='L197'></a> 197 <em class='comment'>/* open disposition values */</em>
<a id='L198' name='L198'></a> 198 <em class='sharp'>#define</em> FILE_EXISTS_FAIL 0
<a id='L199' name='L199'></a> 199 <em class='sharp'>#define</em> FILE_EXISTS_OPEN 1
<a id='L200' name='L200'></a> 200 <em class='sharp'>#define</em> FILE_EXISTS_TRUNCATE 2
<a id='L201' name='L201'></a> 201 
<a id='L202' name='L202'></a> 202 <em class='comment'>/* mask for open disposition. */</em>
<a id='L203' name='L203'></a> 203 <em class='sharp'>#define</em> <a href='../R/FILE_OPEN_MASK.html' title='Multiple referred from 2 places.'>FILE_OPEN_MASK</a> 0x3
<a id='L204' name='L204'></a> 204 
<a id='L205' name='L205'></a> 205 <em class='sharp'>#define</em> GET_FILE_OPEN_DISPOSITION(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) ((<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) &amp; <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L203' title='Defined at 203 in src/vfs/smbfs/helpers/include/smb.h.'>FILE_OPEN_MASK</a>)
<a id='L206' name='L206'></a> 206 <em class='sharp'>#define</em> SET_FILE_OPEN_DISPOSITION(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) ((<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) &amp; <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L203' title='Defined at 203 in src/vfs/smbfs/helpers/include/smb.h.'>FILE_OPEN_MASK</a>)
<a id='L207' name='L207'></a> 207 
<a id='L208' name='L208'></a> 208 <em class='comment'>/* The above can be OR'ed with... */</em>
<a id='L209' name='L209'></a> 209 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L212' title='Referred from 212 in src/vfs/smbfs/helpers/include/smb.h.'>FILE_CREATE_IF_NOT_EXIST</a> 0x10
<a id='L210' name='L210'></a> 210 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L212' title='Referred from 212 in src/vfs/smbfs/helpers/include/smb.h.'>FILE_FAIL_IF_NOT_EXIST</a> 0
<a id='L211' name='L211'></a> 211 
<a id='L212' name='L212'></a> 212 <em class='sharp'>#define</em> GET_FILE_CREATE_DISPOSITION(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) ((<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) &amp; (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L209' title='Defined at 209 in src/vfs/smbfs/helpers/include/smb.h.'>FILE_CREATE_IF_NOT_EXIST</a>|<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L210' title='Defined at 210 in src/vfs/smbfs/helpers/include/smb.h.'>FILE_FAIL_IF_NOT_EXIST</a>))
<a id='L213' name='L213'></a> 213 
<a id='L214' name='L214'></a> 214 <em class='comment'>/* share types */</em>
<a id='L215' name='L215'></a> 215 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--smbfs.c.html#L559' title='Referred from 559 in src/vfs/smbfs/smbfs.c.'>STYPE_DISKTREE</a>  0       <em class='comment'>/* Disk drive */</em>
<a id='L216' name='L216'></a> 216 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--smbfs.c.html#L565' title='Referred from 565 in src/vfs/smbfs/smbfs.c.'>STYPE_PRINTQ</a>    1       <em class='comment'>/* Spooler queue */</em>
<a id='L217' name='L217'></a> 217 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--smbfs.c.html#L568' title='Referred from 568 in src/vfs/smbfs/smbfs.c.'>STYPE_DEVICE</a>    2       <em class='comment'>/* Serial device */</em>
<a id='L218' name='L218'></a> 218 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--smbfs.c.html#L571' title='Referred from 571 in src/vfs/smbfs/smbfs.c.'>STYPE_IPC</a>       3       <em class='comment'>/* Interprocess communication (IPC) */</em>
<a id='L219' name='L219'></a> 219 <em class='sharp'>#define</em> STYPE_HIDDEN    0x80000000      <em class='comment'>/* share is a hidden one (ends with $) */</em>
<a id='L220' name='L220'></a> 220 
<a id='L221' name='L221'></a> 221 <em class='comment'>/* SMB X/Open error codes for the ERRDOS error class */</em>
<a id='L222' name='L222'></a> 222 <em class='sharp'>#define</em> ERRbadfunc 1            <em class='comment'>/* Invalid function (or system call) */</em>
<a id='L223' name='L223'></a> 223 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L2687' title='Referred from 2687 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>ERRbadfile</a> 2            <em class='comment'>/* File not found (pathname error) */</em>
<a id='L224' name='L224'></a> 224 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L2689' title='Referred from 2689 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>ERRbadpath</a> 3            <em class='comment'>/* Directory not found */</em>
<a id='L225' name='L225'></a> 225 <em class='sharp'>#define</em> ERRnofids 4             <em class='comment'>/* Too many open files */</em>
<a id='L226' name='L226'></a> 226 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L2691' title='Referred from 2691 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>ERRnoaccess</a> 5           <em class='comment'>/* Access denied */</em>
<a id='L227' name='L227'></a> 227 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L907' title='Referred from 907 in src/vfs/smbfs/helpers/include/smb.h.'>ERRbadfid</a> 6             <em class='comment'>/* Invalid fid */</em>
<a id='L228' name='L228'></a> 228 <em class='sharp'>#define</em> ERRnomem 8              <em class='comment'>/* Out of memory */</em>
<a id='L229' name='L229'></a> 229 <em class='sharp'>#define</em> ERRbadmem 9             <em class='comment'>/* Invalid memory block address */</em>
<a id='L230' name='L230'></a> 230 <em class='sharp'>#define</em> ERRbadenv 10            <em class='comment'>/* Invalid environment */</em>
<a id='L231' name='L231'></a> 231 <em class='sharp'>#define</em> <a href='../R/ERRbadaccess.html' title='Multiple referred from 3 places.'>ERRbadaccess</a> 12         <em class='comment'>/* Invalid open mode */</em>
<a id='L232' name='L232'></a> 232 <em class='sharp'>#define</em> ERRbaddata 13           <em class='comment'>/* Invalid data (only from ioctl call) */</em>
<a id='L233' name='L233'></a> 233 <em class='sharp'>#define</em> ERRres 14               <em class='comment'>/* reserved */</em>
<a id='L234' name='L234'></a> 234 <em class='sharp'>#define</em> ERRbaddrive 15          <em class='comment'>/* Invalid drive */</em>
<a id='L235' name='L235'></a> 235 <em class='sharp'>#define</em> ERRremcd 16             <em class='comment'>/* Attempt to delete current directory */</em>
<a id='L236' name='L236'></a> 236 <em class='sharp'>#define</em> ERRdiffdevice 17        <em class='comment'>/* rename/move across different filesystems */</em>
<a id='L237' name='L237'></a> 237 <em class='sharp'>#define</em> ERRnofiles 18           <em class='comment'>/* no more files found in file search */</em>
<a id='L238' name='L238'></a> 238 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L2697' title='Referred from 2697 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>ERRbadshare</a> 32          <em class='comment'>/* Share mode on file conflict with open mode */</em>
<a id='L239' name='L239'></a> 239 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L2699' title='Referred from 2699 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>ERRlock</a> 33              <em class='comment'>/* Lock request conflicts with existing lock */</em>
<a id='L240' name='L240'></a> 240 <em class='sharp'>#define</em> ERRunsup 50             <em class='comment'>/* Request unsupported, returned by Win 95, RJS 20Jun98 */</em>
<a id='L241' name='L241'></a> 241 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L2693' title='Referred from 2693 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>ERRfilexists</a> 80         <em class='comment'>/* File in operation already exists */</em>
<a id='L242' name='L242'></a> 242 <em class='sharp'>#define</em> ERRcannotopen 110       <em class='comment'>/* Cannot open the file specified */</em>
<a id='L243' name='L243'></a> 243 <em class='sharp'>#define</em> ERRunknownlevel 124
<a id='L244' name='L244'></a> 244 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L2695' title='Referred from 2695 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>ERRrename</a> 183
<a id='L245' name='L245'></a> 245 <em class='sharp'>#define</em> ERRbadpipe 230          <em class='comment'>/* Named pipe invalid */</em>
<a id='L246' name='L246'></a> 246 <em class='sharp'>#define</em> ERRpipebusy 231         <em class='comment'>/* All instances of pipe are busy */</em>
<a id='L247' name='L247'></a> 247 <em class='sharp'>#define</em> ERRpipeclosing 232      <em class='comment'>/* named pipe close in progress */</em>
<a id='L248' name='L248'></a> 248 <em class='sharp'>#define</em> ERRnotconnected 233     <em class='comment'>/* No process on other end of named pipe */</em>
<a id='L249' name='L249'></a> 249 <em class='sharp'>#define</em> <a href='../R/ERRmoredata.html' title='Multiple referred from 4 places.'>ERRmoredata</a> 234         <em class='comment'>/* More data to be returned */</em>
<a id='L250' name='L250'></a> 250 <em class='sharp'>#define</em> ERRbaddirectory 267     <em class='comment'>/* Invalid directory name in a path. */</em>
<a id='L251' name='L251'></a> 251 <em class='sharp'>#define</em> ERROR_EAS_DIDNT_FIT 275 <em class='comment'>/* Extended attributes didn't fit */</em>
<a id='L252' name='L252'></a> 252 <em class='sharp'>#define</em> ERROR_EAS_NOT_SUPPORTED 282     <em class='comment'>/* Extended attributes not supported */</em>
<a id='L253' name='L253'></a> 253 <em class='sharp'>#define</em> ERROR_NOTIFY_ENUM_DIR 1022      <em class='comment'>/* Buffer too small to return change notify. */</em>
<a id='L254' name='L254'></a> 254 <em class='sharp'>#define</em> ERRunknownipc 2142
<a id='L255' name='L255'></a> 255 
<a id='L256' name='L256'></a> 256 
<a id='L257' name='L257'></a> 257 <em class='comment'>/* here's a special one from observing NT */</em>
<a id='L258' name='L258'></a> 258 <em class='sharp'>#define</em> ERRnoipc 66             <em class='comment'>/* don't support ipc */</em>
<a id='L259' name='L259'></a> 259 
<a id='L260' name='L260'></a> 260 <em class='comment'>/* Error codes for the ERRSRV class */</em>
<a id='L261' name='L261'></a> 261 
<a id='L262' name='L262'></a> 262 <em class='sharp'>#define</em> <a href='../R/ERRerror.html' title='Multiple referred from 2 places.'>ERRerror</a> 1              <em class='comment'>/* Non specific error code */</em>
<a id='L263' name='L263'></a> 263 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L2707' title='Referred from 2707 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>ERRbadpw</a> 2              <em class='comment'>/* Bad password */</em>
<a id='L264' name='L264'></a> 264 <em class='sharp'>#define</em> ERRbadtype 3            <em class='comment'>/* reserved */</em>
<a id='L265' name='L265'></a> 265 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L2709' title='Referred from 2709 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>ERRaccess</a> 4             <em class='comment'>/* No permissions to do the requested operation */</em>
<a id='L266' name='L266'></a> 266 <em class='sharp'>#define</em> ERRinvnid 5             <em class='comment'>/* tid invalid */</em>
<a id='L267' name='L267'></a> 267 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L2715' title='Referred from 2715 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>ERRinvnetname</a> 6         <em class='comment'>/* Invalid servername */</em>
<a id='L268' name='L268'></a> 268 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L2713' title='Referred from 2713 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>ERRinvdevice</a> 7          <em class='comment'>/* Invalid device */</em>
<a id='L269' name='L269'></a> 269 <em class='sharp'>#define</em> ERRqfull 49             <em class='comment'>/* Print queue full */</em>
<a id='L270' name='L270'></a> 270 <em class='sharp'>#define</em> ERRqtoobig 50           <em class='comment'>/* Queued item too big */</em>
<a id='L271' name='L271'></a> 271 <em class='sharp'>#define</em> ERRinvpfid 52           <em class='comment'>/* Invalid print file in smb_fid */</em>
<a id='L272' name='L272'></a> 272 <em class='sharp'>#define</em> ERRsmbcmd 64            <em class='comment'>/* Unrecognised command */</em>
<a id='L273' name='L273'></a> 273 <em class='sharp'>#define</em> ERRsrverror 65          <em class='comment'>/* smb server internal error */</em>
<a id='L274' name='L274'></a> 274 <em class='sharp'>#define</em> ERRfilespecs 67         <em class='comment'>/* fid and pathname invalid combination */</em>
<a id='L275' name='L275'></a> 275 <em class='sharp'>#define</em> ERRbadlink 68           <em class='comment'>/* reserved */</em>
<a id='L276' name='L276'></a> 276 <em class='sharp'>#define</em> ERRbadpermits 69        <em class='comment'>/* Access specified for a file is not valid */</em>
<a id='L277' name='L277'></a> 277 <em class='sharp'>#define</em> ERRbadpid 70            <em class='comment'>/* reserved */</em>
<a id='L278' name='L278'></a> 278 <em class='sharp'>#define</em> ERRsetattrmode 71       <em class='comment'>/* attribute mode invalid */</em>
<a id='L279' name='L279'></a> 279 <em class='sharp'>#define</em> ERRpaused 81            <em class='comment'>/* Message server paused */</em>
<a id='L280' name='L280'></a> 280 <em class='sharp'>#define</em> ERRmsgoff 82            <em class='comment'>/* Not receiving messages */</em>
<a id='L281' name='L281'></a> 281 <em class='sharp'>#define</em> ERRnoroom 83            <em class='comment'>/* No room for message */</em>
<a id='L282' name='L282'></a> 282 <em class='sharp'>#define</em> ERRrmuns 87             <em class='comment'>/* too many remote usernames */</em>
<a id='L283' name='L283'></a> 283 <em class='sharp'>#define</em> ERRtimeout 88           <em class='comment'>/* operation timed out */</em>
<a id='L284' name='L284'></a> 284 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L2711' title='Referred from 2711 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>ERRnoresource</a>  89       <em class='comment'>/* No resources currently available for request. */</em>
<a id='L285' name='L285'></a> 285 <em class='sharp'>#define</em> ERRtoomanyuids 90       <em class='comment'>/* too many userids */</em>
<a id='L286' name='L286'></a> 286 <em class='sharp'>#define</em> ERRbaduid 91            <em class='comment'>/* bad userid */</em>
<a id='L287' name='L287'></a> 287 <em class='sharp'>#define</em> ERRuseMPX 250           <em class='comment'>/* temporarily unable to use raw mode, use MPX mode */</em>
<a id='L288' name='L288'></a> 288 <em class='sharp'>#define</em> ERRuseSTD 251           <em class='comment'>/* temporarily unable to use raw mode, use standard mode */</em>
<a id='L289' name='L289'></a> 289 <em class='sharp'>#define</em> ERRcontMPX 252          <em class='comment'>/* resume MPX mode */</em>
<a id='L290' name='L290'></a> 290 <em class='sharp'>#define</em> ERRbadPW                <em class='comment'>/* reserved */</em>
<a id='L291' name='L291'></a> 291 <em class='sharp'>#define</em> ERRnosupport 0xFFFF
<a id='L292' name='L292'></a> 292 <em class='sharp'>#define</em> ERRunknownsmb 22        <em class='comment'>/* from NT 3.5 response */</em>
<a id='L293' name='L293'></a> 293 
<a id='L294' name='L294'></a> 294 
<a id='L295' name='L295'></a> 295 <em class='comment'>/* Error codes for the ERRHRD class */</em>
<a id='L296' name='L296'></a> 296 
<a id='L297' name='L297'></a> 297 <em class='sharp'>#define</em> ERRnowrite 19           <em class='comment'>/* read only media */</em>
<a id='L298' name='L298'></a> 298 <em class='sharp'>#define</em> ERRbadunit 20           <em class='comment'>/* Unknown device */</em>
<a id='L299' name='L299'></a> 299 <em class='sharp'>#define</em> ERRnotready 21          <em class='comment'>/* Drive not ready */</em>
<a id='L300' name='L300'></a> 300 <em class='sharp'>#define</em> ERRbadcmd 22            <em class='comment'>/* Unknown command */</em>
<a id='L301' name='L301'></a> 301 <em class='sharp'>#define</em> ERRdata 23              <em class='comment'>/* Data (CRC) error */</em>
<a id='L302' name='L302'></a> 302 <em class='sharp'>#define</em> ERRbadreq 24            <em class='comment'>/* Bad request structure length */</em>
<a id='L303' name='L303'></a> 303 <em class='sharp'>#define</em> ERRseek 25
<a id='L304' name='L304'></a> 304 <em class='sharp'>#define</em> ERRbadmedia 26
<a id='L305' name='L305'></a> 305 <em class='sharp'>#define</em> ERRbadsector 27
<a id='L306' name='L306'></a> 306 <em class='sharp'>#define</em> ERRnopaper 28
<a id='L307' name='L307'></a> 307 <em class='sharp'>#define</em> ERRwrite 29             <em class='comment'>/* write fault */</em>
<a id='L308' name='L308'></a> 308 <em class='sharp'>#define</em> ERRread 30              <em class='comment'>/* read fault */</em>
<a id='L309' name='L309'></a> 309 <em class='sharp'>#define</em> ERRgeneral 31           <em class='comment'>/* General hardware failure */</em>
<a id='L310' name='L310'></a> 310 <em class='sharp'>#define</em> ERRwrongdisk 34
<a id='L311' name='L311'></a> 311 <em class='sharp'>#define</em> ERRFCBunavail 35
<a id='L312' name='L312'></a> 312 <em class='sharp'>#define</em> ERRsharebufexc 36       <em class='comment'>/* share buffer exceeded */</em>
<a id='L313' name='L313'></a> 313 <em class='sharp'>#define</em> ERRdiskfull 39
<a id='L314' name='L314'></a> 314 
<a id='L315' name='L315'></a> 315 
<a id='L316' name='L316'></a> 316 <strong class='reserved'>typedef</strong> <strong class='reserved'>char</strong> <a href='../R/pstring.html' title='Multiple referred from 86 places.'>pstring</a>[1024];
<a id='L317' name='L317'></a> 317 <strong class='reserved'>typedef</strong> <strong class='reserved'>char</strong> <a href='../R/fstring.html' title='Multiple referred from 60 places.'>fstring</a>[128];
<a id='L318' name='L318'></a> 318 
<a id='L319' name='L319'></a> 319 <em class='comment'>/* pipe string names */</em>
<a id='L320' name='L320'></a> 320 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L481' title='Referred from 481 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>PIPE_LANMAN</a>   "\\PIPE\\LANMAN"
<a id='L321' name='L321'></a> 321 <em class='sharp'>#define</em> PIPE_SRVSVC   "\\PIPE\\srvsvc"
<a id='L322' name='L322'></a> 322 <em class='sharp'>#define</em> PIPE_SAMR     "\\PIPE\\samr"
<a id='L323' name='L323'></a> 323 <em class='sharp'>#define</em> PIPE_WINREG   "\\PIPE\\winreg"
<a id='L324' name='L324'></a> 324 <em class='sharp'>#define</em> PIPE_WKSSVC   "\\PIPE\\wkssvc"
<a id='L325' name='L325'></a> 325 <em class='sharp'>#define</em> PIPE_NETLOGON "\\PIPE\\NETLOGON"
<a id='L326' name='L326'></a> 326 <em class='sharp'>#define</em> PIPE_NTLSA    "\\PIPE\\ntlsa"
<a id='L327' name='L327'></a> 327 <em class='sharp'>#define</em> PIPE_NTSVCS   "\\PIPE\\ntsvcs"
<a id='L328' name='L328'></a> 328 <em class='sharp'>#define</em> PIPE_LSASS    "\\PIPE\\lsass"
<a id='L329' name='L329'></a> 329 <em class='sharp'>#define</em> PIPE_LSARPC   "\\PIPE\\lsarpc"
<a id='L330' name='L330'></a> 330 
<a id='L331' name='L331'></a> 331 
<a id='L332' name='L332'></a> 332 <em class='comment'>/* 64 bit time (100usec) since ????? - cifs6.txt, section 3.5, page 30 */</em>
<a id='L333' name='L333'></a> 333 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> nttime_info
<a id='L334' name='L334'></a> 334 <em class='brace'>{</em>
<a id='L335' name='L335'></a> 335     <a href='../D/uint32.html' title='Multiple defined in 3 places.'>uint32</a> <a href='../Y/low.html' title='Multiple used in 27 places.'>low</a>;
<a id='L336' name='L336'></a> 336     <a href='../D/uint32.html' title='Multiple defined in 3 places.'>uint32</a> <a href='../Y/high.html' title='Multiple used in 16 places.'>high</a>;
<a id='L337' name='L337'></a> 337 
<a id='L338' name='L338'></a> 338 <em class='brace'>}</em> <a href='../R/NTTIME.html' title='Multiple referred from 6 places.'>NTTIME</a>;
<a id='L339' name='L339'></a> 339 
<a id='L340' name='L340'></a> 340 <em class='comment'>/* Allowable account control bits */</em>
<a id='L341' name='L341'></a> 341 <em class='sharp'>#define</em> ACB_DISABLED   0x0001   <em class='comment'>/* 1 = User account disabled */</em>
<a id='L342' name='L342'></a> 342 <em class='sharp'>#define</em> ACB_HOMDIRREQ  0x0002   <em class='comment'>/* 1 = Home directory required */</em>
<a id='L343' name='L343'></a> 343 <em class='sharp'>#define</em> ACB_PWNOTREQ   0x0004   <em class='comment'>/* 1 = User password not required */</em>
<a id='L344' name='L344'></a> 344 <em class='sharp'>#define</em> ACB_TEMPDUP    0x0008   <em class='comment'>/* 1 = Temporary duplicate account */</em>
<a id='L345' name='L345'></a> 345 <em class='sharp'>#define</em> ACB_NORMAL     0x0010   <em class='comment'>/* 1 = Normal user account */</em>
<a id='L346' name='L346'></a> 346 <em class='sharp'>#define</em> ACB_MNS        0x0020   <em class='comment'>/* 1 = MNS logon user account */</em>
<a id='L347' name='L347'></a> 347 <em class='sharp'>#define</em> ACB_DOMTRUST   0x0040   <em class='comment'>/* 1 = Interdomain trust account */</em>
<a id='L348' name='L348'></a> 348 <em class='sharp'>#define</em> ACB_WSTRUST    0x0080   <em class='comment'>/* 1 = Workstation trust account */</em>
<a id='L349' name='L349'></a> 349 <em class='sharp'>#define</em> ACB_SVRTRUST   0x0100   <em class='comment'>/* 1 = Server trust account */</em>
<a id='L350' name='L350'></a> 350 <em class='sharp'>#define</em> ACB_PWNOEXP    0x0200   <em class='comment'>/* 1 = User password does not expire */</em>
<a id='L351' name='L351'></a> 351 <em class='sharp'>#define</em> ACB_AUTOLOCK   0x0400   <em class='comment'>/* 1 = Account auto locked */</em>
<a id='L352' name='L352'></a> 352 
<a id='L353' name='L353'></a> 353 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L388' title='Referred from 388 in src/vfs/smbfs/helpers/include/smb.h.'>MAX_HOURS_LEN</a> 32
<a id='L354' name='L354'></a> 354 
<a id='L355' name='L355'></a> 355 <strong class='reserved'>struct</strong> <a href='../R/sam_passwd.html' title='Multiple referred from 6 places.'>sam_passwd</a>
<a id='L356' name='L356'></a> 356 <em class='brace'>{</em>
<a id='L357' name='L357'></a> 357     <a href='../Y/time_t.html' title='Multiple used in 133 places.'>time_t</a> logon_time;          <em class='comment'>/* logon time */</em>
<a id='L358' name='L358'></a> 358     <a href='../Y/time_t.html' title='Multiple used in 133 places.'>time_t</a> logoff_time;         <em class='comment'>/* logoff time */</em>
<a id='L359' name='L359'></a> 359     <a href='../Y/time_t.html' title='Multiple used in 133 places.'>time_t</a> kickoff_time;        <em class='comment'>/* kickoff time */</em>
<a id='L360' name='L360'></a> 360     <a href='../Y/time_t.html' title='Multiple used in 133 places.'>time_t</a> <a href='../Y/pass_last_set_time.html' title='Multiple used in 2 places.'>pass_last_set_time</a>;  <em class='comment'>/* password last set time */</em>
<a id='L361' name='L361'></a> 361     <a href='../Y/time_t.html' title='Multiple used in 133 places.'>time_t</a> pass_can_change_time;        <em class='comment'>/* password can change time */</em>
<a id='L362' name='L362'></a> 362     <a href='../Y/time_t.html' title='Multiple used in 133 places.'>time_t</a> pass_must_change_time;       <em class='comment'>/* password must change time */</em>
<a id='L363' name='L363'></a> 363 
<a id='L364' name='L364'></a> 364     <strong class='reserved'>char</strong> *<a href='../Y/smb_name.html' title='Multiple used in 3 places.'>smb_name</a>;             <em class='comment'>/* username string */</em>
<a id='L365' name='L365'></a> 365     <strong class='reserved'>char</strong> *<a href='../Y/full_name.html' title='Multiple used in 3 places.'>full_name</a>;            <em class='comment'>/* user's full name string */</em>
<a id='L366' name='L366'></a> 366     <strong class='reserved'>char</strong> *<a href='../Y/home_dir.html' title='Multiple used in 5 places.'>home_dir</a>;             <em class='comment'>/* home directory string */</em>
<a id='L367' name='L367'></a> 367     <strong class='reserved'>char</strong> *dir_drive;            <em class='comment'>/* home directory drive string */</em>
<a id='L368' name='L368'></a> 368     <strong class='reserved'>char</strong> *logon_script;         <em class='comment'>/* logon script string */</em>
<a id='L369' name='L369'></a> 369     <strong class='reserved'>char</strong> *profile_path;         <em class='comment'>/* profile path string */</em>
<a id='L370' name='L370'></a> 370     <strong class='reserved'>char</strong> *acct_desc;            <em class='comment'>/* user description string */</em>
<a id='L371' name='L371'></a> 371     <strong class='reserved'>char</strong> *workstations;         <em class='comment'>/* login from workstations string */</em>
<a id='L372' name='L372'></a> 372     <strong class='reserved'>char</strong> *unknown_str;          <em class='comment'>/* don't know what this is, yet. */</em>
<a id='L373' name='L373'></a> 373     <strong class='reserved'>char</strong> *munged_dial;          <em class='comment'>/* munged path name and dial-back tel number */</em>
<a id='L374' name='L374'></a> 374 
<a id='L375' name='L375'></a> 375     <a href='../Y/uid_t.html' title='Multiple used in 48 places.'>uid_t</a> <a href='../Y/smb_userid.html' title='Multiple used in 2 places.'>smb_userid</a>;           <em class='comment'>/* this is actually the unix uid_t */</em>
<a id='L376' name='L376'></a> 376     <a href='../Y/gid_t.html' title='Multiple used in 47 places.'>gid_t</a> smb_grpid;            <em class='comment'>/* this is actually the unix gid_t */</em>
<a id='L377' name='L377'></a> 377     <a href='../D/uint32.html' title='Multiple defined in 3 places.'>uint32</a> <a href='../Y/user_rid.html' title='Multiple used in 2 places.'>user_rid</a>;            <em class='comment'>/* Primary User ID */</em>
<a id='L378' name='L378'></a> 378     <a href='../D/uint32.html' title='Multiple defined in 3 places.'>uint32</a> group_rid;           <em class='comment'>/* Primary Group ID */</em>
<a id='L379' name='L379'></a> 379 
<a id='L380' name='L380'></a> 380     <strong class='reserved'>unsigned</strong> <strong class='reserved'>char</strong> *<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L394' title='Defined at 394 in src/vfs/smbfs/helpers/include/smb.h.'>smb_passwd</a>;  <em class='comment'>/* Null if no password */</em>
<a id='L381' name='L381'></a> 381     <strong class='reserved'>unsigned</strong> <strong class='reserved'>char</strong> *<a href='../Y/smb_nt_passwd.html' title='Multiple used in 2 places.'>smb_nt_passwd</a>;       <em class='comment'>/* Null if no password */</em>
<a id='L382' name='L382'></a> 382 
<a id='L383' name='L383'></a> 383     <a href='../D/uint16.html' title='Multiple defined in 2 places.'>uint16</a> <a href='../Y/acct_ctrl.html' title='Multiple used in 2 places.'>acct_ctrl</a>;           <em class='comment'>/* account info (ACB_xxxx bit-mask) */</em>
<a id='L384' name='L384'></a> 384     <a href='../D/uint32.html' title='Multiple defined in 3 places.'>uint32</a> unknown_3;           <em class='comment'>/* 0x00ff ffff */</em>
<a id='L385' name='L385'></a> 385 
<a id='L386' name='L386'></a> 386     <a href='../D/uint16.html' title='Multiple defined in 2 places.'>uint16</a> logon_divs;          <em class='comment'>/* 168 - number of hours in a week */</em>
<a id='L387' name='L387'></a> 387     <a href='../D/uint32.html' title='Multiple defined in 3 places.'>uint32</a> hours_len;           <em class='comment'>/* normally 21 bytes */</em>
<a id='L388' name='L388'></a> 388     <a href='../S/src--vfs--smbfs--helpers--include--includes.h.html#L271' title='Defined at 271 in src/vfs/smbfs/helpers/include/includes.h.'>uint8</a> <a href='../Y/hours.html' title='Multiple used in 3 places.'>hours</a>[<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L353' title='Defined at 353 in src/vfs/smbfs/helpers/include/smb.h.'>MAX_HOURS_LEN</a>];
<a id='L389' name='L389'></a> 389 
<a id='L390' name='L390'></a> 390     <a href='../D/uint32.html' title='Multiple defined in 3 places.'>uint32</a> unknown_5;           <em class='comment'>/* 0x0002 0000 */</em>
<a id='L391' name='L391'></a> 391     <a href='../D/uint32.html' title='Multiple defined in 3 places.'>uint32</a> unknown_6;           <em class='comment'>/* 0x0000 04ec */</em>
<a id='L392' name='L392'></a> 392 <em class='brace'>}</em>;
<a id='L393' name='L393'></a> 393 
<a id='L394' name='L394'></a> 394 <strong class='reserved'>struct</strong> <a href='../R/smb_passwd.html' title='Multiple referred from 10 places.'>smb_passwd</a>
<a id='L395' name='L395'></a> 395 <em class='brace'>{</em>
<a id='L396' name='L396'></a> 396     <a href='../Y/uid_t.html' title='Multiple used in 48 places.'>uid_t</a> <a href='../Y/smb_userid.html' title='Multiple used in 2 places.'>smb_userid</a>;           <em class='comment'>/* this is actually the unix uid_t */</em>
<a id='L397' name='L397'></a> 397     <strong class='reserved'>char</strong> *<a href='../Y/smb_name.html' title='Multiple used in 3 places.'>smb_name</a>;             <em class='comment'>/* username string */</em>
<a id='L398' name='L398'></a> 398 
<a id='L399' name='L399'></a> 399     <strong class='reserved'>unsigned</strong> <strong class='reserved'>char</strong> *<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L394' title='Defined at 394 in src/vfs/smbfs/helpers/include/smb.h.'>smb_passwd</a>;  <em class='comment'>/* Null if no password */</em>
<a id='L400' name='L400'></a> 400     <strong class='reserved'>unsigned</strong> <strong class='reserved'>char</strong> *<a href='../Y/smb_nt_passwd.html' title='Multiple used in 2 places.'>smb_nt_passwd</a>;       <em class='comment'>/* Null if no password */</em>
<a id='L401' name='L401'></a> 401 
<a id='L402' name='L402'></a> 402     <a href='../D/uint16.html' title='Multiple defined in 2 places.'>uint16</a> <a href='../Y/acct_ctrl.html' title='Multiple used in 2 places.'>acct_ctrl</a>;           <em class='comment'>/* account info (ACB_xxxx bit-mask) */</em>
<a id='L403' name='L403'></a> 403     <a href='../Y/time_t.html' title='Multiple used in 133 places.'>time_t</a> <a href='../Y/pass_last_set_time.html' title='Multiple used in 2 places.'>pass_last_set_time</a>;  <em class='comment'>/* password last set time */</em>
<a id='L404' name='L404'></a> 404 <em class='brace'>}</em>;
<a id='L405' name='L405'></a> 405 
<a id='L406' name='L406'></a> 406 
<a id='L407' name='L407'></a> 407 <strong class='reserved'>struct</strong> <a href='../R/sam_disp_info.html' title='Multiple referred from 3 places.'>sam_disp_info</a>
<a id='L408' name='L408'></a> 408 <em class='brace'>{</em>
<a id='L409' name='L409'></a> 409     <a href='../D/uint32.html' title='Multiple defined in 3 places.'>uint32</a> <a href='../Y/user_rid.html' title='Multiple used in 2 places.'>user_rid</a>;            <em class='comment'>/* Primary User ID */</em>
<a id='L410' name='L410'></a> 410     <strong class='reserved'>char</strong> *<a href='../Y/smb_name.html' title='Multiple used in 3 places.'>smb_name</a>;             <em class='comment'>/* username string */</em>
<a id='L411' name='L411'></a> 411     <strong class='reserved'>char</strong> *<a href='../Y/full_name.html' title='Multiple used in 3 places.'>full_name</a>;            <em class='comment'>/* user's full name string */</em>
<a id='L412' name='L412'></a> 412 <em class='brace'>}</em>;
<a id='L413' name='L413'></a> 413 
<a id='L414' name='L414'></a> 414 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L426' title='Referred from 426 in src/vfs/smbfs/helpers/include/smb.h.'>MAXSUBAUTHS</a> 15          <em class='comment'>/* max sub authorities in a SID */</em>
<a id='L415' name='L415'></a> 415 
<a id='L416' name='L416'></a> 416 <em class='comment'>/* DOM_SID - security id */</em>
<a id='L417' name='L417'></a> 417 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> sid_info
<a id='L418' name='L418'></a> 418 <em class='brace'>{</em>
<a id='L419' name='L419'></a> 419     <a href='../S/src--vfs--smbfs--helpers--include--includes.h.html#L271' title='Defined at 271 in src/vfs/smbfs/helpers/include/includes.h.'>uint8</a> sid_rev_num;          <em class='comment'>/* SID revision number */</em>
<a id='L420' name='L420'></a> 420     <a href='../S/src--vfs--smbfs--helpers--include--includes.h.html#L271' title='Defined at 271 in src/vfs/smbfs/helpers/include/includes.h.'>uint8</a> num_auths;            <em class='comment'>/* number of sub-authorities */</em>
<a id='L421' name='L421'></a> 421     <a href='../S/src--vfs--smbfs--helpers--include--includes.h.html#L271' title='Defined at 271 in src/vfs/smbfs/helpers/include/includes.h.'>uint8</a> id_auth[6];           <em class='comment'>/* Identifier Authority */</em>
<a id='L422' name='L422'></a> 422     <em class='comment'>/*</em>
<a id='L423' name='L423'></a> 423 <em class='comment'>     * Note that the values in these uint32's are in *native* byteorder,</em>
<a id='L424' name='L424'></a> 424 <em class='comment'>     * not neccessarily little-endian...... JRA.</em>
<a id='L425' name='L425'></a> 425 <em class='comment'>     */</em>
<a id='L426' name='L426'></a> 426     <a href='../D/uint32.html' title='Multiple defined in 3 places.'>uint32</a> sub_auths[<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L414' title='Defined at 414 in src/vfs/smbfs/helpers/include/smb.h.'>MAXSUBAUTHS</a>];      <em class='comment'>/* pointer to sub-authorities. */</em>
<a id='L427' name='L427'></a> 427 
<a id='L428' name='L428'></a> 428 <em class='brace'>}</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L436' title='Referred from 436 in src/vfs/smbfs/helpers/include/smb.h.'>DOM_SID</a>;
<a id='L429' name='L429'></a> 429 
<a id='L430' name='L430'></a> 430 
<a id='L431' name='L431'></a> 431 <em class='comment'>/*** query a local group, get a list of these: shows who is in that group ***/</em>
<a id='L432' name='L432'></a> 432 
<a id='L433' name='L433'></a> 433 <em class='comment'>/* local group member info */</em>
<a id='L434' name='L434'></a> 434 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> local_grp_member_info
<a id='L435' name='L435'></a> 435 <em class='brace'>{</em>
<a id='L436' name='L436'></a> 436     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L428' title='Defined at 428 in src/vfs/smbfs/helpers/include/smb.h.'>DOM_SID</a> sid;                <em class='comment'>/* matches with name */</em>
<a id='L437' name='L437'></a> 437     <a href='../S/src--vfs--smbfs--helpers--include--includes.h.html#L271' title='Defined at 271 in src/vfs/smbfs/helpers/include/includes.h.'>uint8</a> sid_use;              <em class='comment'>/* usr=1 grp=2 dom=3 alias=4 wkng=5 del=6 inv=7 unk=8 */</em>
<a id='L438' name='L438'></a> 438     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L317' title='Defined at 317 in src/vfs/smbfs/helpers/include/smb.h.'>fstring</a> <a href='../Y/name.html' title='Multiple used in 736 places.'>name</a>;               <em class='comment'>/* matches with sid: must be of the form "DOMAIN\account" */</em>
<a id='L439' name='L439'></a> 439 
<a id='L440' name='L440'></a> 440 <em class='brace'>}</em> LOCAL_GRP_MEMBER;
<a id='L441' name='L441'></a> 441 
<a id='L442' name='L442'></a> 442 <em class='comment'>/* enumerate these to get list of local groups */</em>
<a id='L443' name='L443'></a> 443 
<a id='L444' name='L444'></a> 444 <em class='comment'>/* local group info */</em>
<a id='L445' name='L445'></a> 445 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> local_grp_info
<a id='L446' name='L446'></a> 446 <em class='brace'>{</em>
<a id='L447' name='L447'></a> 447     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L317' title='Defined at 317 in src/vfs/smbfs/helpers/include/smb.h.'>fstring</a> <a href='../Y/name.html' title='Multiple used in 736 places.'>name</a>;
<a id='L448' name='L448'></a> 448     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L317' title='Defined at 317 in src/vfs/smbfs/helpers/include/smb.h.'>fstring</a> <a href='../Y/comment.html' title='Multiple used in 18 places.'>comment</a>;
<a id='L449' name='L449'></a> 449 
<a id='L450' name='L450'></a> 450 <em class='brace'>}</em> LOCAL_GRP;
<a id='L451' name='L451'></a> 451 
<a id='L452' name='L452'></a> 452 <em class='comment'>/*** enumerate these to get list of domain groups ***/</em>
<a id='L453' name='L453'></a> 453 
<a id='L454' name='L454'></a> 454 <em class='comment'>/* domain group member info */</em>
<a id='L455' name='L455'></a> 455 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> domain_grp_info
<a id='L456' name='L456'></a> 456 <em class='brace'>{</em>
<a id='L457' name='L457'></a> 457     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L317' title='Defined at 317 in src/vfs/smbfs/helpers/include/smb.h.'>fstring</a> <a href='../Y/name.html' title='Multiple used in 736 places.'>name</a>;
<a id='L458' name='L458'></a> 458     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L317' title='Defined at 317 in src/vfs/smbfs/helpers/include/smb.h.'>fstring</a> <a href='../Y/comment.html' title='Multiple used in 18 places.'>comment</a>;
<a id='L459' name='L459'></a> 459     <a href='../D/uint32.html' title='Multiple defined in 3 places.'>uint32</a> rid;                 <em class='comment'>/* group rid */</em>
<a id='L460' name='L460'></a> 460     <a href='../S/src--vfs--smbfs--helpers--include--includes.h.html#L271' title='Defined at 271 in src/vfs/smbfs/helpers/include/includes.h.'>uint8</a> <a href='../Y/attr.html' title='Multiple used in 66 places.'>attr</a>;                 <em class='comment'>/* attributes forced to be set to 0x7: SE_GROUP_xxx */</em>
<a id='L461' name='L461'></a> 461 
<a id='L462' name='L462'></a> 462 <em class='brace'>}</em> DOMAIN_GRP;
<a id='L463' name='L463'></a> 463 
<a id='L464' name='L464'></a> 464 <em class='comment'>/*** query a domain group, get a list of these: shows who is in that group ***/</em>
<a id='L465' name='L465'></a> 465 
<a id='L466' name='L466'></a> 466 <em class='comment'>/* domain group info */</em>
<a id='L467' name='L467'></a> 467 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> domain_grp_member_info
<a id='L468' name='L468'></a> 468 <em class='brace'>{</em>
<a id='L469' name='L469'></a> 469     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L317' title='Defined at 317 in src/vfs/smbfs/helpers/include/smb.h.'>fstring</a> <a href='../Y/name.html' title='Multiple used in 736 places.'>name</a>;
<a id='L470' name='L470'></a> 470     <a href='../S/src--vfs--smbfs--helpers--include--includes.h.html#L271' title='Defined at 271 in src/vfs/smbfs/helpers/include/includes.h.'>uint8</a> <a href='../Y/attr.html' title='Multiple used in 66 places.'>attr</a>;                 <em class='comment'>/* attributes forced to be set to 0x7: SE_GROUP_xxx */</em>
<a id='L471' name='L471'></a> 471 
<a id='L472' name='L472'></a> 472 <em class='brace'>}</em> DOMAIN_GRP_MEMBER;
<a id='L473' name='L473'></a> 473 
<a id='L474' name='L474'></a> 474 <em class='comment'>/* DOM_CHAL - challenge info */</em>
<a id='L475' name='L475'></a> 475 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> chal_info
<a id='L476' name='L476'></a> 476 <em class='brace'>{</em>
<a id='L477' name='L477'></a> 477     <a href='../D/uchar.html' title='Multiple defined in 3 places.'>uchar</a> <a href='../Y/data.html' title='Multiple used in 912 places.'>data</a>[8];              <em class='comment'>/* credentials */</em>
<a id='L478' name='L478'></a> 478 <em class='brace'>}</em> <a href='../R/DOM_CHAL.html' title='Multiple referred from 3 places.'>DOM_CHAL</a>;
<a id='L479' name='L479'></a> 479 
<a id='L480' name='L480'></a> 480 <em class='comment'>/* 32 bit time (sec) since 01jan1970 - cifs6.txt, section 3.5, page 30 */</em>
<a id='L481' name='L481'></a> 481 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> time_info
<a id='L482' name='L482'></a> 482 <em class='brace'>{</em>
<a id='L483' name='L483'></a> 483     <a href='../D/uint32.html' title='Multiple defined in 3 places.'>uint32</a> <a href='../Y/time.html' title='Multiple used in 23 places.'>time</a>;
<a id='L484' name='L484'></a> 484 <em class='brace'>}</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L490' title='Referred from 490 in src/vfs/smbfs/helpers/include/smb.h.'>UTIME</a>;
<a id='L485' name='L485'></a> 485 
<a id='L486' name='L486'></a> 486 <em class='comment'>/* DOM_CREDs - timestamped client or server credentials */</em>
<a id='L487' name='L487'></a> 487 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> cred_info
<a id='L488' name='L488'></a> 488 <em class='brace'>{</em>
<a id='L489' name='L489'></a> 489     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L478' title='Defined at 478 in src/vfs/smbfs/helpers/include/smb.h.'>DOM_CHAL</a> challenge;         <em class='comment'>/* credentials */</em>
<a id='L490' name='L490'></a> 490     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L484' title='Defined at 484 in src/vfs/smbfs/helpers/include/smb.h.'>UTIME</a> <a href='../Y/timestamp.html' title='Multiple used in 20 places.'>timestamp</a>;            <em class='comment'>/* credential time-stamp */</em>
<a id='L491' name='L491'></a> 491 <em class='brace'>}</em> <a href='../R/DOM_CRED.html' title='Multiple referred from 3 places.'>DOM_CRED</a>;
<a id='L492' name='L492'></a> 492 
<a id='L493' name='L493'></a> 493 <em class='comment'>/* Structure used when SMBwritebmpx is active */</em>
<a id='L494' name='L494'></a> 494 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong>
<a id='L495' name='L495'></a> 495 <em class='brace'>{</em>
<a id='L496' name='L496'></a> 496     <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a> wr_total_written;    <em class='comment'>/* So we know when to discard this */</em>
<a id='L497' name='L497'></a> 497     <a href='../D/int32.html' title='Multiple defined in 3 places.'>int32</a> wr_timeout;
<a id='L498' name='L498'></a> 498     <a href='../D/int32.html' title='Multiple defined in 3 places.'>int32</a> <a href='../Y/wr_errclass.html' title='Multiple used in 2 places.'>wr_errclass</a>;
<a id='L499' name='L499'></a> 499     <a href='../D/int32.html' title='Multiple defined in 3 places.'>int32</a> <a href='../Y/wr_error.html' title='Multiple used in 2 places.'>wr_error</a>;             <em class='comment'>/* Cached errors */</em>
<a id='L500' name='L500'></a> 500     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> wr_mode;               <em class='comment'>/* write through mode) */</em>
<a id='L501' name='L501'></a> 501     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> <a href='../Y/wr_discard.html' title='Multiple used in 3 places.'>wr_discard</a>;            <em class='comment'>/* discard all further data */</em>
<a id='L502' name='L502'></a> 502 <em class='brace'>}</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L606' title='Referred from 606 in src/vfs/smbfs/helpers/include/smb.h.'>write_bmpx_struct</a>;
<a id='L503' name='L503'></a> 503 
<a id='L504' name='L504'></a> 504 <em class='comment'>/*</em>
<a id='L505' name='L505'></a> 505 <em class='comment'> * Structure used to indirect fd's from the files_struct.</em>
<a id='L506' name='L506'></a> 506 <em class='comment'> * Needed as POSIX locking is based on file and process, not</em>
<a id='L507' name='L507'></a> 507 <em class='comment'> * file descriptor and process.</em>
<a id='L508' name='L508'></a> 508 <em class='comment'> */</em>
<a id='L509' name='L509'></a> 509 
<a id='L510' name='L510'></a> 510 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> <a href='../R/file_fd_struct.html' title='Multiple referred from 2 places.'>file_fd_struct</a>
<a id='L511' name='L511'></a> 511 <em class='brace'>{</em>
<a id='L512' name='L512'></a> 512     <strong class='reserved'>struct</strong> <a href='../D/file_fd_struct.html' title='Multiple defined in 2 places.'>file_fd_struct</a> *<a href='../Y/next.html' title='Multiple used in 271 places.'>next</a>, *<a href='../Y/prev.html' title='Multiple used in 103 places.'>prev</a>;
<a id='L513' name='L513'></a> 513     <a href='../D/uint16.html' title='Multiple defined in 2 places.'>uint16</a> ref_count;
<a id='L514' name='L514'></a> 514     <a href='../D/uint16.html' title='Multiple defined in 2 places.'>uint16</a> uid_cache_count;
<a id='L515' name='L515'></a> 515     <a href='../Y/uid_t.html' title='Multiple used in 48 places.'>uid_t</a> uid_users_cache[10];
<a id='L516' name='L516'></a> 516     <a href='../S/src--vfs--smbfs--helpers--include--includes.h.html#L325' title='Defined at 325 in src/vfs/smbfs/helpers/include/includes.h.'>SMB_DEV_T</a> <a href='../Y/dev.html' title='Multiple used in 54 places.'>dev</a>;
<a id='L517' name='L517'></a> 517     <a href='../S/src--vfs--smbfs--helpers--include--includes.h.html#L333' title='Defined at 333 in src/vfs/smbfs/helpers/include/includes.h.'>SMB_INO_T</a> <a href='../Y/inode.html' title='Multiple used in 66 places.'>inode</a>;
<a id='L518' name='L518'></a> 518     <strong class='reserved'>int</strong> <a href='../Y/fd.html' title='Multiple used in 422 places.'>fd</a>;
<a id='L519' name='L519'></a> 519     <strong class='reserved'>int</strong> fd_readonly;
<a id='L520' name='L520'></a> 520     <strong class='reserved'>int</strong> fd_writeonly;
<a id='L521' name='L521'></a> 521     <strong class='reserved'>int</strong> real_open_flags;
<a id='L522' name='L522'></a> 522     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> delete_on_close;
<a id='L523' name='L523'></a> 523 <em class='brace'>}</em> <a href='../R/file_fd_struct.html' title='Multiple referred from 2 places.'>file_fd_struct</a>;
<a id='L524' name='L524'></a> 524 
<a id='L525' name='L525'></a> 525 <em class='comment'>/*</em>
<a id='L526' name='L526'></a> 526 <em class='comment'> * Structure used to keep directory state information around.</em>
<a id='L527' name='L527'></a> 527 <em class='comment'> * Used in NT change-notify code.</em>
<a id='L528' name='L528'></a> 528 <em class='comment'> */</em>
<a id='L529' name='L529'></a> 529 
<a id='L530' name='L530'></a> 530 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong>
<a id='L531' name='L531'></a> 531 <em class='brace'>{</em>
<a id='L532' name='L532'></a> 532     <a href='../Y/time_t.html' title='Multiple used in 133 places.'>time_t</a> modify_time;
<a id='L533' name='L533'></a> 533     <a href='../Y/time_t.html' title='Multiple used in 133 places.'>time_t</a> status_time;
<a id='L534' name='L534'></a> 534 <em class='brace'>}</em> dir_status_struct;
<a id='L535' name='L535'></a> 535 
<a id='L536' name='L536'></a> 536 <strong class='reserved'>struct</strong> <a href='../R/uid_cache.html' title='Multiple referred from 4 places.'>uid_cache</a>
<a id='L537' name='L537'></a> 537 <em class='brace'>{</em>
<a id='L538' name='L538'></a> 538     <strong class='reserved'>int</strong> <a href='../Y/entries.html' title='Multiple used in 277 places.'>entries</a>;
<a id='L539' name='L539'></a> 539     <a href='../Y/uid_t.html' title='Multiple used in 48 places.'>uid_t</a> <a href='../Y/list.html' title='Multiple used in 429 places.'>list</a>[<a href='../D/UID_CACHE_SIZE.html' title='Multiple defined in 2 places.'>UID_CACHE_SIZE</a>];
<a id='L540' name='L540'></a> 540 <em class='brace'>}</em>;
<a id='L541' name='L541'></a> 541 
<a id='L542' name='L542'></a> 542 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong>
<a id='L543' name='L543'></a> 543 <em class='brace'>{</em>
<a id='L544' name='L544'></a> 544     <strong class='reserved'>char</strong> *<a href='../Y/name.html' title='Multiple used in 736 places.'>name</a>;
<a id='L545' name='L545'></a> 545     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> <a href='../Y/is_wild.html' title='Multiple used in 3 places.'>is_wild</a>;
<a id='L546' name='L546'></a> 546 <em class='brace'>}</em> <a href='../R/name_compare_entry.html' title='Multiple referred from 11 places.'>name_compare_entry</a>;
<a id='L547' name='L547'></a> 547 
<a id='L548' name='L548'></a> 548 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> <a href='../R/connection_struct.html' title='Multiple referred from 8 places.'>connection_struct</a>
<a id='L549' name='L549'></a> 549 <em class='brace'>{</em>
<a id='L550' name='L550'></a> 550     <strong class='reserved'>struct</strong> <a href='../D/connection_struct.html' title='Multiple defined in 2 places.'>connection_struct</a> *<a href='../Y/next.html' title='Multiple used in 271 places.'>next</a>, *<a href='../Y/prev.html' title='Multiple used in 103 places.'>prev</a>;
<a id='L551' name='L551'></a> 551     <strong class='reserved'>unsigned</strong> <a href='../Y/cnum.html' title='Multiple used in 29 places.'>cnum</a>;              <em class='comment'>/* an index passed over the wire */</em>
<a id='L552' name='L552'></a> 552     <strong class='reserved'>int</strong> <a href='../S/src--vfs--smbfs--helpers--param--loadparm.c.html#L347' title='Defined at 347 in src/vfs/smbfs/helpers/param/loadparm.c.'>service</a>;
<a id='L553' name='L553'></a> 553     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> <a href='../Y/force_user.html' title='Multiple used in 4 places.'>force_user</a>;
<a id='L554' name='L554'></a> 554     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L536' title='Defined at 536 in src/vfs/smbfs/helpers/include/smb.h.'>uid_cache</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L536' title='Defined at 536 in src/vfs/smbfs/helpers/include/smb.h.'>uid_cache</a>;
<a id='L555' name='L555'></a> 555     <strong class='reserved'>void</strong> *dirptr;
<a id='L556' name='L556'></a> 556     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> <a href='../S/src--diffviewer--ydiff.c.html#L1680' title='Defined at 1680 in src/diffviewer/ydiff.c.'>printer</a>;
<a id='L557' name='L557'></a> 557     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> <a href='../Y/ipc.html' title='Multiple used in 2 places.'>ipc</a>;
<a id='L558' name='L558'></a> 558     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> <a href='../Y/read_only.html' title='Multiple used in 11 places.'>read_only</a>;
<a id='L559' name='L559'></a> 559     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> admin_user;
<a id='L560' name='L560'></a> 560     <strong class='reserved'>char</strong> *dirpath;
<a id='L561' name='L561'></a> 561     <strong class='reserved'>char</strong> *<a href='../Y/connectpath.html' title='Multiple used in 2 places.'>connectpath</a>;
<a id='L562' name='L562'></a> 562     <strong class='reserved'>char</strong> *origpath;
<a id='L563' name='L563'></a> 563     <strong class='reserved'>char</strong> *<a href='../Y/user.html' title='Multiple used in 182 places.'>user</a>;                 <em class='comment'>/* name of user who *opened* this connection */</em>
<a id='L564' name='L564'></a> 564     <a href='../Y/uid_t.html' title='Multiple used in 48 places.'>uid_t</a> <a href='../Y/uid.html' title='Multiple used in 41 places.'>uid</a>;                  <em class='comment'>/* uid of user who *opened* this connection */</em>
<a id='L565' name='L565'></a> 565     <a href='../Y/gid_t.html' title='Multiple used in 47 places.'>gid_t</a> <a href='../Y/gid.html' title='Multiple used in 29 places.'>gid</a>;                  <em class='comment'>/* gid of user who *opened* this connection */</em>
<a id='L566' name='L566'></a> 566 
<a id='L567' name='L567'></a> 567     <a href='../D/uint16.html' title='Multiple defined in 2 places.'>uint16</a> <a href='../Y/vuid.html' title='Multiple used in 8 places.'>vuid</a>;                <em class='comment'>/* vuid of user who *opened* this connection, or UID_FIELD_INVALID */</em>
<a id='L568' name='L568'></a> 568 
<a id='L569' name='L569'></a> 569     <em class='comment'>/* following groups stuff added by ih */</em>
<a id='L570' name='L570'></a> 570 
<a id='L571' name='L571'></a> 571     <em class='comment'>/* This groups info is valid for the user that *opened* the connection */</em>
<a id='L572' name='L572'></a> 572     <strong class='reserved'>int</strong> <a href='../Y/ngroups.html' title='Multiple used in 19 places.'>ngroups</a>;
<a id='L573' name='L573'></a> 573     <a href='../Y/gid_t.html' title='Multiple used in 47 places.'>gid_t</a> *<a href='../Y/groups.html' title='Multiple used in 40 places.'>groups</a>;
<a id='L574' name='L574'></a> 574 
<a id='L575' name='L575'></a> 575     <a href='../Y/time_t.html' title='Multiple used in 133 places.'>time_t</a> lastused;
<a id='L576' name='L576'></a> 576     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> used;
<a id='L577' name='L577'></a> 577     <strong class='reserved'>int</strong> num_files_open;
<a id='L578' name='L578'></a> 578     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L546' title='Defined at 546 in src/vfs/smbfs/helpers/include/smb.h.'>name_compare_entry</a> *<a href='../Y/hide_list.html' title='Multiple used in 2 places.'>hide_list</a>;      <em class='comment'>/* Per-share list of files to return as hidden. */</em>
<a id='L579' name='L579'></a> 579     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L546' title='Defined at 546 in src/vfs/smbfs/helpers/include/smb.h.'>name_compare_entry</a> *<a href='../Y/veto_list.html' title='Multiple used in 2 places.'>veto_list</a>;      <em class='comment'>/* Per-share list of files to veto (never show). */</em>
<a id='L580' name='L580'></a> 580     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L546' title='Defined at 546 in src/vfs/smbfs/helpers/include/smb.h.'>name_compare_entry</a> *<a href='../Y/veto_oplock_list.html' title='Multiple used in 2 places.'>veto_oplock_list</a>;       <em class='comment'>/* Per-share list of files to refuse oplocks on. */</em>
<a id='L581' name='L581'></a> 581 
<a id='L582' name='L582'></a> 582 <em class='brace'>}</em> <a href='../R/connection_struct.html' title='Multiple referred from 8 places.'>connection_struct</a>;
<a id='L583' name='L583'></a> 583 
<a id='L584' name='L584'></a> 584 <strong class='reserved'>struct</strong> current_user
<a id='L585' name='L585'></a> 585 <em class='brace'>{</em>
<a id='L586' name='L586'></a> 586     <a href='../D/connection_struct.html' title='Multiple defined in 2 places.'>connection_struct</a> *<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>;
<a id='L587' name='L587'></a> 587     <a href='../D/uint16.html' title='Multiple defined in 2 places.'>uint16</a> <a href='../Y/vuid.html' title='Multiple used in 8 places.'>vuid</a>;
<a id='L588' name='L588'></a> 588     <a href='../Y/uid_t.html' title='Multiple used in 48 places.'>uid_t</a> <a href='../Y/uid.html' title='Multiple used in 41 places.'>uid</a>;
<a id='L589' name='L589'></a> 589     <a href='../Y/gid_t.html' title='Multiple used in 47 places.'>gid_t</a> <a href='../Y/gid.html' title='Multiple used in 29 places.'>gid</a>;
<a id='L590' name='L590'></a> 590     <strong class='reserved'>int</strong> <a href='../Y/ngroups.html' title='Multiple used in 19 places.'>ngroups</a>;
<a id='L591' name='L591'></a> 591     <a href='../Y/gid_t.html' title='Multiple used in 47 places.'>gid_t</a> *<a href='../Y/groups.html' title='Multiple used in 40 places.'>groups</a>;
<a id='L592' name='L592'></a> 592 <em class='brace'>}</em>;
<a id='L593' name='L593'></a> 593 
<a id='L594' name='L594'></a> 594 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong> <a href='../R/files_struct.html' title='Multiple referred from 4 places.'>files_struct</a>
<a id='L595' name='L595'></a> 595 <em class='brace'>{</em>
<a id='L596' name='L596'></a> 596     <strong class='reserved'>struct</strong> <a href='../D/files_struct.html' title='Multiple defined in 2 places.'>files_struct</a> *<a href='../Y/next.html' title='Multiple used in 271 places.'>next</a>, *<a href='../Y/prev.html' title='Multiple used in 103 places.'>prev</a>;
<a id='L597' name='L597'></a> 597     <strong class='reserved'>int</strong> <a href='../Y/fnum.html' title='Multiple used in 42 places.'>fnum</a>;
<a id='L598' name='L598'></a> 598     <a href='../D/connection_struct.html' title='Multiple defined in 2 places.'>connection_struct</a> *<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>;
<a id='L599' name='L599'></a> 599     <a href='../D/file_fd_struct.html' title='Multiple defined in 2 places.'>file_fd_struct</a> *<a href='../Y/fd_ptr.html' title='Multiple used in 2 places.'>fd_ptr</a>;
<a id='L600' name='L600'></a> 600     <a href='../S/src--vfs--smbfs--helpers--include--includes.h.html#L349' title='Defined at 349 in src/vfs/smbfs/helpers/include/includes.h.'>SMB_OFF_T</a> <a href='../Y/pos.html' title='Multiple used in 398 places.'>pos</a>;
<a id='L601' name='L601'></a> 601     <a href='../S/src--vfs--smbfs--helpers--include--includes.h.html#L349' title='Defined at 349 in src/vfs/smbfs/helpers/include/includes.h.'>SMB_OFF_T</a> <a href='../Y/size.html' title='Multiple used in 387 places.'>size</a>;
<a id='L602' name='L602'></a> 602     <a href='../Y/mode_t.html' title='Multiple used in 103 places.'>mode_t</a> <a href='../Y/mode.html' title='Multiple used in 239 places.'>mode</a>;
<a id='L603' name='L603'></a> 603     <a href='../D/uint16.html' title='Multiple defined in 2 places.'>uint16</a> <a href='../Y/vuid.html' title='Multiple used in 8 places.'>vuid</a>;
<a id='L604' name='L604'></a> 604     <strong class='reserved'>char</strong> *mmap_ptr;
<a id='L605' name='L605'></a> 605     <a href='../S/src--vfs--smbfs--helpers--include--includes.h.html#L349' title='Defined at 349 in src/vfs/smbfs/helpers/include/includes.h.'>SMB_OFF_T</a> mmap_size;
<a id='L606' name='L606'></a> 606     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L502' title='Defined at 502 in src/vfs/smbfs/helpers/include/smb.h.'>write_bmpx_struct</a> *<a href='../Y/wbmpx_ptr.html' title='Multiple used in 3 places.'>wbmpx_ptr</a>;
<a id='L607' name='L607'></a> 607     <strong class='reserved'>struct</strong> <a href='../Y/timeval.html' title='Multiple used in 44 places.'>timeval</a> open_time;
<a id='L608' name='L608'></a> 608     <strong class='reserved'>int</strong> <a href='../Y/share_mode.html' title='Multiple used in 5 places.'>share_mode</a>;
<a id='L609' name='L609'></a> 609     <a href='../Y/time_t.html' title='Multiple used in 133 places.'>time_t</a> pending_modtime;
<a id='L610' name='L610'></a> 610     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> <a href='../Y/open.html' title='Multiple used in 47 places.'>open</a>;
<a id='L611' name='L611'></a> 611     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> can_lock;
<a id='L612' name='L612'></a> 612     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> <a href='../Y/can_read.html' title='Multiple used in 2 places.'>can_read</a>;
<a id='L613' name='L613'></a> 613     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> <a href='../Y/can_write.html' title='Multiple used in 2 places.'>can_write</a>;
<a id='L614' name='L614'></a> 614     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> print_file;
<a id='L615' name='L615'></a> 615     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> <a href='../Y/modified.html' title='Multiple used in 38 places.'>modified</a>;
<a id='L616' name='L616'></a> 616     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> granted_oplock;
<a id='L617' name='L617'></a> 617     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> sent_oplock_break;
<a id='L618' name='L618'></a> 618     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> <a href='../Y/is_directory.html' title='Multiple used in 2 places.'>is_directory</a>;
<a id='L619' name='L619'></a> 619     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> directory_delete_on_close;
<a id='L620' name='L620'></a> 620     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> stat_open;
<a id='L621' name='L621'></a> 621     <strong class='reserved'>char</strong> *fsp_name;
<a id='L622' name='L622'></a> 622 <em class='brace'>}</em> <a href='../R/files_struct.html' title='Multiple referred from 4 places.'>files_struct</a>;
<a id='L623' name='L623'></a> 623 
<a id='L624' name='L624'></a> 624 <em class='comment'>/* Domain controller authentication protocol info */</em>
<a id='L625' name='L625'></a> 625 <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L655' title='Referred from 655 in src/vfs/smbfs/helpers/include/smb.h.'>dcinfo</a>
<a id='L626' name='L626'></a> 626 <em class='brace'>{</em>
<a id='L627' name='L627'></a> 627     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L478' title='Defined at 478 in src/vfs/smbfs/helpers/include/smb.h.'>DOM_CHAL</a> clnt_chal;         <em class='comment'>/* Initial challenge received from client */</em>
<a id='L628' name='L628'></a> 628     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L478' title='Defined at 478 in src/vfs/smbfs/helpers/include/smb.h.'>DOM_CHAL</a> srv_chal;          <em class='comment'>/* Initial server challenge */</em>
<a id='L629' name='L629'></a> 629     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L491' title='Defined at 491 in src/vfs/smbfs/helpers/include/smb.h.'>DOM_CRED</a> <a href='../Y/clnt_cred.html' title='Multiple used in 2 places.'>clnt_cred</a>;         <em class='comment'>/* Last client credential */</em>
<a id='L630' name='L630'></a> 630     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L491' title='Defined at 491 in src/vfs/smbfs/helpers/include/smb.h.'>DOM_CRED</a> srv_cred;          <em class='comment'>/* Last server credential */</em>
<a id='L631' name='L631'></a> 631 
<a id='L632' name='L632'></a> 632     <a href='../D/uchar.html' title='Multiple defined in 3 places.'>uchar</a> <a href='../Y/sess_key.html' title='Multiple used in 2 places.'>sess_key</a>[8];          <em class='comment'>/* Session key */</em>
<a id='L633' name='L633'></a> 633     <a href='../D/uchar.html' title='Multiple defined in 3 places.'>uchar</a> md4pw[16];            <em class='comment'>/* md4(machine password) */</em>
<a id='L634' name='L634'></a> 634 <em class='brace'>}</em>;
<a id='L635' name='L635'></a> 635 
<a id='L636' name='L636'></a> 636 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong>
<a id='L637' name='L637'></a> 637 <em class='brace'>{</em>
<a id='L638' name='L638'></a> 638     <a href='../Y/uid_t.html' title='Multiple used in 48 places.'>uid_t</a> <a href='../Y/uid.html' title='Multiple used in 41 places.'>uid</a>;                  <em class='comment'>/* uid of a validated user */</em>
<a id='L639' name='L639'></a> 639     <a href='../Y/gid_t.html' title='Multiple used in 47 places.'>gid_t</a> <a href='../Y/gid.html' title='Multiple used in 29 places.'>gid</a>;                  <em class='comment'>/* gid of a validated user */</em>
<a id='L640' name='L640'></a> 640 
<a id='L641' name='L641'></a> 641     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L317' title='Defined at 317 in src/vfs/smbfs/helpers/include/smb.h.'>fstring</a> requested_name;     <em class='comment'>/* user name from the client */</em>
<a id='L642' name='L642'></a> 642     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L317' title='Defined at 317 in src/vfs/smbfs/helpers/include/smb.h.'>fstring</a> <a href='../Y/name.html' title='Multiple used in 736 places.'>name</a>;               <em class='comment'>/* unix user name of a validated user */</em>
<a id='L643' name='L643'></a> 643     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L317' title='Defined at 317 in src/vfs/smbfs/helpers/include/smb.h.'>fstring</a> real_name;          <em class='comment'>/* to store real name from password file - simeon */</em>
<a id='L644' name='L644'></a> 644     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> guest;
<a id='L645' name='L645'></a> 645 
<a id='L646' name='L646'></a> 646     <em class='comment'>/* following groups stuff added by ih */</em>
<a id='L647' name='L647'></a> 647     <em class='comment'>/* This groups info is needed for when we become_user() for this uid */</em>
<a id='L648' name='L648'></a> 648     <strong class='reserved'>int</strong> n_groups;
<a id='L649' name='L649'></a> 649     <a href='../Y/gid_t.html' title='Multiple used in 47 places.'>gid_t</a> *<a href='../Y/groups.html' title='Multiple used in 40 places.'>groups</a>;
<a id='L650' name='L650'></a> 650 
<a id='L651' name='L651'></a> 651     <strong class='reserved'>int</strong> n_sids;
<a id='L652' name='L652'></a> 652     <strong class='reserved'>int</strong> *sids;
<a id='L653' name='L653'></a> 653 
<a id='L654' name='L654'></a> 654     <em class='comment'>/* per-user authentication information on NT RPCs */</em>
<a id='L655' name='L655'></a> 655     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L625' title='Defined at 625 in src/vfs/smbfs/helpers/include/smb.h.'>dcinfo</a> <a href='../Y/dc.html' title='Multiple used in 4 places.'>dc</a>;
<a id='L656' name='L656'></a> 656 
<a id='L657' name='L657'></a> 657 <em class='brace'>}</em> user_struct;
<a id='L658' name='L658'></a> 658 
<a id='L659' name='L659'></a> 659 
<a id='L660' name='L660'></a> 660 <strong class='reserved'>enum</strong>
<a id='L661' name='L661'></a> 661 <em class='brace'>{</em> LPQ_QUEUED, LPQ_PAUSED, LPQ_SPOOLING, LPQ_PRINTING <em class='brace'>}</em>;
<a id='L662' name='L662'></a> 662 
<a id='L663' name='L663'></a> 663 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong>
<a id='L664' name='L664'></a> 664 <em class='brace'>{</em>
<a id='L665' name='L665'></a> 665     <strong class='reserved'>int</strong> job;
<a id='L666' name='L666'></a> 666     <strong class='reserved'>int</strong> <a href='../Y/size.html' title='Multiple used in 387 places.'>size</a>;
<a id='L667' name='L667'></a> 667     <strong class='reserved'>int</strong> <a href='../Y/status.html' title='Multiple used in 157 places.'>status</a>;
<a id='L668' name='L668'></a> 668     <strong class='reserved'>int</strong> <a href='../Y/priority.html' title='Multiple used in 2 places.'>priority</a>;
<a id='L669' name='L669'></a> 669     <a href='../Y/time_t.html' title='Multiple used in 133 places.'>time_t</a> <a href='../Y/time.html' title='Multiple used in 23 places.'>time</a>;
<a id='L670' name='L670'></a> 670     <strong class='reserved'>char</strong> <a href='../Y/user.html' title='Multiple used in 182 places.'>user</a>[30];
<a id='L671' name='L671'></a> 671     <strong class='reserved'>char</strong> <a href='../Y/file.html' title='Multiple used in 289 places.'>file</a>[100];
<a id='L672' name='L672'></a> 672 <em class='brace'>}</em> print_queue_struct;
<a id='L673' name='L673'></a> 673 
<a id='L674' name='L674'></a> 674 <strong class='reserved'>enum</strong>
<a id='L675' name='L675'></a> 675 <em class='brace'>{</em> LPSTAT_OK, LPSTAT_STOPPED, LPSTAT_ERROR <em class='brace'>}</em>;
<a id='L676' name='L676'></a> 676 
<a id='L677' name='L677'></a> 677 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong>
<a id='L678' name='L678'></a> 678 <em class='brace'>{</em>
<a id='L679' name='L679'></a> 679     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L317' title='Defined at 317 in src/vfs/smbfs/helpers/include/smb.h.'>fstring</a> <a href='../D/message.html' title='Multiple defined in 5 places.'>message</a>;
<a id='L680' name='L680'></a> 680     <strong class='reserved'>int</strong> <a href='../Y/status.html' title='Multiple used in 157 places.'>status</a>;
<a id='L681' name='L681'></a> 681 <em class='brace'>}</em> print_status_struct;
<a id='L682' name='L682'></a> 682 
<a id='L683' name='L683'></a> 683 <em class='comment'>/* used for server information: client, nameserv and ipc */</em>
<a id='L684' name='L684'></a> 684 <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--nameserv.h.html#L185' title='Referred from 185 in src/vfs/smbfs/helpers/include/nameserv.h.'>server_info_struct</a>
<a id='L685' name='L685'></a> 685 <em class='brace'>{</em>
<a id='L686' name='L686'></a> 686     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L317' title='Defined at 317 in src/vfs/smbfs/helpers/include/smb.h.'>fstring</a> <a href='../Y/name.html' title='Multiple used in 736 places.'>name</a>;
<a id='L687' name='L687'></a> 687     <a href='../D/uint32.html' title='Multiple defined in 3 places.'>uint32</a> <a href='../Y/type.html' title='Multiple used in 300 places.'>type</a>;
<a id='L688' name='L688'></a> 688     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L317' title='Defined at 317 in src/vfs/smbfs/helpers/include/smb.h.'>fstring</a> <a href='../Y/comment.html' title='Multiple used in 18 places.'>comment</a>;
<a id='L689' name='L689'></a> 689     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L317' title='Defined at 317 in src/vfs/smbfs/helpers/include/smb.h.'>fstring</a> <a href='../Y/domain.html' title='Multiple used in 51 places.'>domain</a>;             <em class='comment'>/* used ONLY in ipc.c NOT namework.c */</em>
<a id='L690' name='L690'></a> 690     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> server_added;          <em class='comment'>/* used ONLY in ipc.c NOT namework.c */</em>
<a id='L691' name='L691'></a> 691 <em class='brace'>}</em>;
<a id='L692' name='L692'></a> 692 
<a id='L693' name='L693'></a> 693 
<a id='L694' name='L694'></a> 694 <em class='comment'>/* used for network interfaces */</em>
<a id='L695' name='L695'></a> 695 <strong class='reserved'>struct</strong> <a href='../R/interface.html' title='Multiple referred from 20 places.'>interface</a>
<a id='L696' name='L696'></a> 696 <em class='brace'>{</em>
<a id='L697' name='L697'></a> 697     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L695' title='Defined at 695 in src/vfs/smbfs/helpers/include/smb.h.'>interface</a> *<a href='../Y/next.html' title='Multiple used in 271 places.'>next</a>;
<a id='L698' name='L698'></a> 698     <strong class='reserved'>struct</strong> <a href='../Y/in_addr.html' title='Multiple used in 97 places.'>in_addr</a> <a href='../Y/ip.html' title='Multiple used in 79 places.'>ip</a>;
<a id='L699' name='L699'></a> 699     <strong class='reserved'>struct</strong> <a href='../Y/in_addr.html' title='Multiple used in 97 places.'>in_addr</a> <a href='../Y/bcast.html' title='Multiple used in 23 places.'>bcast</a>;
<a id='L700' name='L700'></a> 700     <strong class='reserved'>struct</strong> <a href='../Y/in_addr.html' title='Multiple used in 97 places.'>in_addr</a> <a href='../Y/nmask.html' title='Multiple used in 37 places.'>nmask</a>;
<a id='L701' name='L701'></a> 701 <em class='brace'>}</em>;
<a id='L702' name='L702'></a> 702 
<a id='L703' name='L703'></a> 703 <em class='comment'>/* struct returned by get_share_modes */</em>
<a id='L704' name='L704'></a> 704 <strong class='reserved'>typedef</strong> <strong class='reserved'>struct</strong>
<a id='L705' name='L705'></a> 705 <em class='brace'>{</em>
<a id='L706' name='L706'></a> 706     <strong class='reserved'>int</strong> <a href='../Y/pid.html' title='Multiple used in 64 places.'>pid</a>;
<a id='L707' name='L707'></a> 707     <a href='../D/uint16.html' title='Multiple defined in 2 places.'>uint16</a> op_port;
<a id='L708' name='L708'></a> 708     <a href='../D/uint16.html' title='Multiple defined in 2 places.'>uint16</a> op_type;
<a id='L709' name='L709'></a> 709     <strong class='reserved'>int</strong> <a href='../Y/share_mode.html' title='Multiple used in 5 places.'>share_mode</a>;
<a id='L710' name='L710'></a> 710     <strong class='reserved'>struct</strong> <a href='../Y/timeval.html' title='Multiple used in 44 places.'>timeval</a> <a href='../Y/time.html' title='Multiple used in 23 places.'>time</a>;
<a id='L711' name='L711'></a> 711 <em class='brace'>}</em> <a href='../R/share_mode_entry.html' title='Multiple referred from 3 places.'>share_mode_entry</a>;
<a id='L712' name='L712'></a> 712 
<a id='L713' name='L713'></a> 713 
<a id='L714' name='L714'></a> 714 <em class='comment'>/* each implementation of the share mode code needs</em>
<a id='L715' name='L715'></a> 715 <em class='comment'>   to support the following operations */</em>
<a id='L716' name='L716'></a> 716 <strong class='reserved'>struct</strong> share_ops
<a id='L717' name='L717'></a> 717 <em class='brace'>{</em>
<a id='L718' name='L718'></a> 718     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> (*stop_mgmt) (<strong class='reserved'>void</strong>);
<a id='L719' name='L719'></a> 719     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> (*lock_entry) (<a href='../D/connection_struct.html' title='Multiple defined in 2 places.'>connection_struct</a> *, <a href='../S/src--vfs--smbfs--helpers--include--includes.h.html#L325' title='Defined at 325 in src/vfs/smbfs/helpers/include/includes.h.'>SMB_DEV_T</a>, <a href='../S/src--vfs--smbfs--helpers--include--includes.h.html#L333' title='Defined at 333 in src/vfs/smbfs/helpers/include/includes.h.'>SMB_INO_T</a>, <strong class='reserved'>int</strong> *);
<a id='L720' name='L720'></a> 720     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> (*unlock_entry) (<a href='../D/connection_struct.html' title='Multiple defined in 2 places.'>connection_struct</a> *, <a href='../S/src--vfs--smbfs--helpers--include--includes.h.html#L325' title='Defined at 325 in src/vfs/smbfs/helpers/include/includes.h.'>SMB_DEV_T</a>, <a href='../S/src--vfs--smbfs--helpers--include--includes.h.html#L333' title='Defined at 333 in src/vfs/smbfs/helpers/include/includes.h.'>SMB_INO_T</a>, <strong class='reserved'>int</strong>);
<a id='L721' name='L721'></a> 721     <strong class='reserved'>int</strong> (*get_entries) (<a href='../D/connection_struct.html' title='Multiple defined in 2 places.'>connection_struct</a> *, <strong class='reserved'>int</strong>, <a href='../S/src--vfs--smbfs--helpers--include--includes.h.html#L325' title='Defined at 325 in src/vfs/smbfs/helpers/include/includes.h.'>SMB_DEV_T</a>, <a href='../S/src--vfs--smbfs--helpers--include--includes.h.html#L333' title='Defined at 333 in src/vfs/smbfs/helpers/include/includes.h.'>SMB_INO_T</a>, <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L711' title='Defined at 711 in src/vfs/smbfs/helpers/include/smb.h.'>share_mode_entry</a> **);
<a id='L722' name='L722'></a> 722     <strong class='reserved'>void</strong> (*del_entry) (<strong class='reserved'>int</strong>, <a href='../D/files_struct.html' title='Multiple defined in 2 places.'>files_struct</a> *);
<a id='L723' name='L723'></a> 723       <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> (*set_entry) (<strong class='reserved'>int</strong>, <a href='../D/files_struct.html' title='Multiple defined in 2 places.'>files_struct</a> *, <a href='../D/uint16.html' title='Multiple defined in 2 places.'>uint16</a>, <a href='../D/uint16.html' title='Multiple defined in 2 places.'>uint16</a>);
<a id='L724' name='L724'></a> 724       <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> (*mod_entry) (<strong class='reserved'>int</strong>, <a href='../D/files_struct.html' title='Multiple defined in 2 places.'>files_struct</a> *,
<a id='L725' name='L725'></a> 725                          <strong class='reserved'>void</strong> (*)(<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L711' title='Defined at 711 in src/vfs/smbfs/helpers/include/smb.h.'>share_mode_entry</a> *, <a href='../S/src--vfs--smbfs--helpers--include--includes.h.html#L325' title='Defined at 325 in src/vfs/smbfs/helpers/include/includes.h.'>SMB_DEV_T</a>, <a href='../S/src--vfs--smbfs--helpers--include--includes.h.html#L333' title='Defined at 333 in src/vfs/smbfs/helpers/include/includes.h.'>SMB_INO_T</a>, <strong class='reserved'>void</strong> *), <strong class='reserved'>void</strong> *);
<a id='L726' name='L726'></a> 726     <strong class='reserved'>int</strong> (*forall) (<strong class='reserved'>void</strong> (*)(<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L711' title='Defined at 711 in src/vfs/smbfs/helpers/include/smb.h.'>share_mode_entry</a> *, <strong class='reserved'>char</strong> *));
<a id='L727' name='L727'></a> 727     <strong class='reserved'>void</strong> (*<a href='../Y/status.html' title='Multiple used in 157 places.'>status</a>) (<a href='../Y/FILE.html' title='Multiple used in 105 places.'>FILE</a> *);
<a id='L728' name='L728'></a> 728 <em class='brace'>}</em>;
<a id='L729' name='L729'></a> 729 
<a id='L730' name='L730'></a> 730 <em class='comment'>/* each implementation of the shared memory code needs</em>
<a id='L731' name='L731'></a> 731 <em class='comment'>   to support the following operations */</em>
<a id='L732' name='L732'></a> 732 <strong class='reserved'>struct</strong> shmem_ops
<a id='L733' name='L733'></a> 733 <em class='brace'>{</em>
<a id='L734' name='L734'></a> 734     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> (*shm_close) (<strong class='reserved'>void</strong>);
<a id='L735' name='L735'></a> 735     <strong class='reserved'>int</strong> (*shm_alloc) (<strong class='reserved'>int</strong>);
<a id='L736' name='L736'></a> 736       <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> (*shm_free) (<strong class='reserved'>int</strong>);
<a id='L737' name='L737'></a> 737     <strong class='reserved'>int</strong> (*get_userdef_off) (<strong class='reserved'>void</strong>);
<a id='L738' name='L738'></a> 738     <strong class='reserved'>void</strong> *(*offset2addr) (<strong class='reserved'>int</strong>);
<a id='L739' name='L739'></a> 739     <strong class='reserved'>int</strong> (*addr2offset) (<strong class='reserved'>void</strong> *<a href='../Y/addr.html' title='Multiple used in 39 places.'>addr</a>);
<a id='L740' name='L740'></a> 740       <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> (*lock_hash_entry) (<strong class='reserved'>unsigned</strong> <strong class='reserved'>int</strong>);
<a id='L741' name='L741'></a> 741       <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> (*unlock_hash_entry) (<strong class='reserved'>unsigned</strong> <strong class='reserved'>int</strong>);
<a id='L742' name='L742'></a> 742       <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> (*get_usage) (<strong class='reserved'>int</strong> *, <strong class='reserved'>int</strong> *, <strong class='reserved'>int</strong> *);
<a id='L743' name='L743'></a> 743     <strong class='reserved'>unsigned</strong> (*hash_size) (<strong class='reserved'>void</strong>);
<a id='L744' name='L744'></a> 744 <em class='brace'>}</em>;
<a id='L745' name='L745'></a> 745 
<a id='L746' name='L746'></a> 746 <em class='comment'>/*</em>
<a id='L747' name='L747'></a> 747 <em class='comment'> * Each implementation of the password database code needs</em>
<a id='L748' name='L748'></a> 748 <em class='comment'> * to support the following operations.</em>
<a id='L749' name='L749'></a> 749 <em class='comment'> */</em>
<a id='L750' name='L750'></a> 750 
<a id='L751' name='L751'></a> 751 <strong class='reserved'>struct</strong> passdb_ops
<a id='L752' name='L752'></a> 752 <em class='brace'>{</em>
<a id='L753' name='L753'></a> 753     <em class='comment'>/*</em>
<a id='L754' name='L754'></a> 754 <em class='comment'>     * Password database ops.</em>
<a id='L755' name='L755'></a> 755 <em class='comment'>     */</em>
<a id='L756' name='L756'></a> 756     <strong class='reserved'>void</strong> *(*startsmbpwent) (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a>);
<a id='L757' name='L757'></a> 757     <strong class='reserved'>void</strong> (*endsmbpwent) (<strong class='reserved'>void</strong> *);
<a id='L758' name='L758'></a> 758       <a href='../D/SMB_BIG_UINT.html' title='Multiple defined in 2 places.'>SMB_BIG_UINT</a> (*getsmbpwpos) (<strong class='reserved'>void</strong> *);
<a id='L759' name='L759'></a> 759       <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> (*setsmbpwpos) (<strong class='reserved'>void</strong> *, <a href='../D/SMB_BIG_UINT.html' title='Multiple defined in 2 places.'>SMB_BIG_UINT</a>);
<a id='L760' name='L760'></a> 760 
<a id='L761' name='L761'></a> 761     <em class='comment'>/*</em>
<a id='L762' name='L762'></a> 762 <em class='comment'>     * smb password database query functions.</em>
<a id='L763' name='L763'></a> 763 <em class='comment'>     */</em>
<a id='L764' name='L764'></a> 764     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L394' title='Defined at 394 in src/vfs/smbfs/helpers/include/smb.h.'>smb_passwd</a> *(*getsmbpwnam) (<strong class='reserved'>char</strong> *);
<a id='L765' name='L765'></a> 765     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L394' title='Defined at 394 in src/vfs/smbfs/helpers/include/smb.h.'>smb_passwd</a> *(*getsmbpwuid) (<a href='../Y/uid_t.html' title='Multiple used in 48 places.'>uid_t</a>);
<a id='L766' name='L766'></a> 766     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L394' title='Defined at 394 in src/vfs/smbfs/helpers/include/smb.h.'>smb_passwd</a> *(*getsmbpwrid) (<a href='../D/uint32.html' title='Multiple defined in 3 places.'>uint32</a>);
<a id='L767' name='L767'></a> 767     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L394' title='Defined at 394 in src/vfs/smbfs/helpers/include/smb.h.'>smb_passwd</a> *(*getsmbpwent) (<strong class='reserved'>void</strong> *);
<a id='L768' name='L768'></a> 768 
<a id='L769' name='L769'></a> 769     <em class='comment'>/*</em>
<a id='L770' name='L770'></a> 770 <em class='comment'>     * smb password database modification functions.</em>
<a id='L771' name='L771'></a> 771 <em class='comment'>     */</em>
<a id='L772' name='L772'></a> 772       <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> (*add_smbpwd_entry) (<strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L394' title='Defined at 394 in src/vfs/smbfs/helpers/include/smb.h.'>smb_passwd</a> *);
<a id='L773' name='L773'></a> 773       <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> (*mod_smbpwd_entry) (<strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L394' title='Defined at 394 in src/vfs/smbfs/helpers/include/smb.h.'>smb_passwd</a> *, <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a>);
<a id='L774' name='L774'></a> 774 
<a id='L775' name='L775'></a> 775     <em class='comment'>/*</em>
<a id='L776' name='L776'></a> 776 <em class='comment'>     * Functions that manipulate a struct sam_passwd.</em>
<a id='L777' name='L777'></a> 777 <em class='comment'>     */</em>
<a id='L778' name='L778'></a> 778     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L355' title='Defined at 355 in src/vfs/smbfs/helpers/include/smb.h.'>sam_passwd</a> *(*getsam21pwent) (<strong class='reserved'>void</strong> *);
<a id='L779' name='L779'></a> 779 
<a id='L780' name='L780'></a> 780     <em class='comment'>/*</em>
<a id='L781' name='L781'></a> 781 <em class='comment'>     * sam password database query functions.</em>
<a id='L782' name='L782'></a> 782 <em class='comment'>     */</em>
<a id='L783' name='L783'></a> 783     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L355' title='Defined at 355 in src/vfs/smbfs/helpers/include/smb.h.'>sam_passwd</a> *(*getsam21pwnam) (<strong class='reserved'>char</strong> *);
<a id='L784' name='L784'></a> 784     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L355' title='Defined at 355 in src/vfs/smbfs/helpers/include/smb.h.'>sam_passwd</a> *(*getsam21pwuid) (<a href='../Y/uid_t.html' title='Multiple used in 48 places.'>uid_t</a>);
<a id='L785' name='L785'></a> 785     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L355' title='Defined at 355 in src/vfs/smbfs/helpers/include/smb.h.'>sam_passwd</a> *(*getsam21pwrid) (<a href='../D/uint32.html' title='Multiple defined in 3 places.'>uint32</a>);
<a id='L786' name='L786'></a> 786 
<a id='L787' name='L787'></a> 787     <em class='comment'>/*</em>
<a id='L788' name='L788'></a> 788 <em class='comment'>     * sam password database modification functions.</em>
<a id='L789' name='L789'></a> 789 <em class='comment'>     */</em>
<a id='L790' name='L790'></a> 790       <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> (*add_sam21pwd_entry) (<strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L355' title='Defined at 355 in src/vfs/smbfs/helpers/include/smb.h.'>sam_passwd</a> *);
<a id='L791' name='L791'></a> 791       <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> (*mod_sam21pwd_entry) (<strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L355' title='Defined at 355 in src/vfs/smbfs/helpers/include/smb.h.'>sam_passwd</a> *, <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a>);
<a id='L792' name='L792'></a> 792 
<a id='L793' name='L793'></a> 793     <em class='comment'>/*</em>
<a id='L794' name='L794'></a> 794 <em class='comment'>     * sam query display info functions.</em>
<a id='L795' name='L795'></a> 795 <em class='comment'>     */</em>
<a id='L796' name='L796'></a> 796     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L407' title='Defined at 407 in src/vfs/smbfs/helpers/include/smb.h.'>sam_disp_info</a> *(*getsamdispnam) (<strong class='reserved'>char</strong> *);
<a id='L797' name='L797'></a> 797     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L407' title='Defined at 407 in src/vfs/smbfs/helpers/include/smb.h.'>sam_disp_info</a> *(*getsamdisprid) (<a href='../D/uint32.html' title='Multiple defined in 3 places.'>uint32</a>);
<a id='L798' name='L798'></a> 798     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L407' title='Defined at 407 in src/vfs/smbfs/helpers/include/smb.h.'>sam_disp_info</a> *(*getsamdispent) (<strong class='reserved'>void</strong> *);
<a id='L799' name='L799'></a> 799 
<a id='L800' name='L800'></a> 800 <em class='sharp'>#if</em> 0
<a id='L801' name='L801'></a> 801     <em class='comment'>/*</em>
<a id='L802' name='L802'></a> 802 <em class='comment'>     * password checking functions</em>
<a id='L803' name='L803'></a> 803 <em class='comment'>     */</em>
<a id='L804' name='L804'></a> 804     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L394' title='Defined at 394 in src/vfs/smbfs/helpers/include/smb.h.'>smb_passwd</a> *(*smb_password_chal) (<strong class='reserved'>char</strong> *<a href='../Y/username.html' title='Multiple used in 18 places.'>username</a>, <strong class='reserved'>char</strong> lm_pass[24], <strong class='reserved'>char</strong> nt_pass[24],
<a id='L805' name='L805'></a> 805                                              <strong class='reserved'>char</strong> chal[8]);
<a id='L806' name='L806'></a> 806     <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L394' title='Defined at 394 in src/vfs/smbfs/helpers/include/smb.h.'>smb_passwd</a> *(*smb_password_check) (<strong class='reserved'>char</strong> *<a href='../Y/username.html' title='Multiple used in 18 places.'>username</a>, <strong class='reserved'>char</strong> lm_hash[16], <strong class='reserved'>char</strong> nt_hash[16]);
<a id='L807' name='L807'></a> 807     <strong class='reserved'>struct</strong> <a href='../Y/passwd.html' title='Multiple used in 88 places.'>passwd</a> *(*unix_password_check) (<strong class='reserved'>char</strong> *<a href='../Y/username.html' title='Multiple used in 18 places.'>username</a>, <strong class='reserved'>char</strong> *<a href='../Y/pass.html' title='Multiple used in 50 places.'>pass</a>, <strong class='reserved'>int</strong> <a href='../Y/pass_len.html' title='Multiple used in 5 places.'>pass_len</a>);
<a id='L808' name='L808'></a> 808 <em class='sharp'>#endif</em>
<a id='L809' name='L809'></a> 809 <em class='brace'>}</em>;
<a id='L810' name='L810'></a> 810 
<a id='L811' name='L811'></a> 811 <em class='comment'>/* this is used for smbstatus */</em>
<a id='L812' name='L812'></a> 812 
<a id='L813' name='L813'></a> 813 <strong class='reserved'>struct</strong> connect_record
<a id='L814' name='L814'></a> 814 <em class='brace'>{</em>
<a id='L815' name='L815'></a> 815     <strong class='reserved'>int</strong> <a href='../Y/magic.html' title='Multiple used in 41 places.'>magic</a>;
<a id='L816' name='L816'></a> 816     <strong class='reserved'>int</strong> <a href='../Y/pid.html' title='Multiple used in 64 places.'>pid</a>;
<a id='L817' name='L817'></a> 817     <strong class='reserved'>int</strong> <a href='../Y/cnum.html' title='Multiple used in 29 places.'>cnum</a>;
<a id='L818' name='L818'></a> 818     <a href='../Y/uid_t.html' title='Multiple used in 48 places.'>uid_t</a> <a href='../Y/uid.html' title='Multiple used in 41 places.'>uid</a>;
<a id='L819' name='L819'></a> 819     <a href='../Y/gid_t.html' title='Multiple used in 47 places.'>gid_t</a> <a href='../Y/gid.html' title='Multiple used in 29 places.'>gid</a>;
<a id='L820' name='L820'></a> 820     <strong class='reserved'>char</strong> <a href='../Y/name.html' title='Multiple used in 736 places.'>name</a>[24];
<a id='L821' name='L821'></a> 821     <strong class='reserved'>char</strong> <a href='../Y/addr.html' title='Multiple used in 39 places.'>addr</a>[24];
<a id='L822' name='L822'></a> 822     <strong class='reserved'>char</strong> <a href='../Y/machine.html' title='Multiple used in 8 places.'>machine</a>[128];
<a id='L823' name='L823'></a> 823     <a href='../Y/time_t.html' title='Multiple used in 133 places.'>time_t</a> <a href='../S/src--editor--etags.c.html#L179' title='Defined at 179 in src/editor/etags.c.'>start</a>;
<a id='L824' name='L824'></a> 824 <em class='brace'>}</em>;
<a id='L825' name='L825'></a> 825 
<a id='L826' name='L826'></a> 826 <em class='comment'>/* This is used by smbclient to send it to a smbfs mount point */</em>
<a id='L827' name='L827'></a> 827 <strong class='reserved'>struct</strong> connection_options
<a id='L828' name='L828'></a> 828 <em class='brace'>{</em>
<a id='L829' name='L829'></a> 829     <strong class='reserved'>int</strong> <a href='../Y/protocol.html' title='Multiple used in 16 places.'>protocol</a>;
<a id='L830' name='L830'></a> 830     <em class='comment'>/* Connection-Options */</em>
<a id='L831' name='L831'></a> 831     <a href='../D/uint32.html' title='Multiple defined in 3 places.'>uint32</a> <a href='../Y/max_xmit.html' title='Multiple used in 21 places.'>max_xmit</a>;
<a id='L832' name='L832'></a> 832     <a href='../D/uint16.html' title='Multiple defined in 2 places.'>uint16</a> server_vuid;
<a id='L833' name='L833'></a> 833     <a href='../D/uint16.html' title='Multiple defined in 2 places.'>uint16</a> tid;
<a id='L834' name='L834'></a> 834     <em class='comment'>/* The following are LANMAN 1.0 options */</em>
<a id='L835' name='L835'></a> 835     <a href='../D/uint16.html' title='Multiple defined in 2 places.'>uint16</a> <a href='../Y/sec_mode.html' title='Multiple used in 9 places.'>sec_mode</a>;
<a id='L836' name='L836'></a> 836     <a href='../D/uint16.html' title='Multiple defined in 2 places.'>uint16</a> <a href='../Y/max_mux.html' title='Multiple used in 9 places.'>max_mux</a>;
<a id='L837' name='L837'></a> 837     <a href='../D/uint16.html' title='Multiple defined in 2 places.'>uint16</a> max_vcs;
<a id='L838' name='L838'></a> 838     <a href='../D/uint16.html' title='Multiple defined in 2 places.'>uint16</a> rawmode;
<a id='L839' name='L839'></a> 839     <a href='../D/uint32.html' title='Multiple defined in 3 places.'>uint32</a> <a href='../Y/sesskey.html' title='Multiple used in 6 places.'>sesskey</a>;
<a id='L840' name='L840'></a> 840     <em class='comment'>/* The following are NT LM 0.12 options */</em>
<a id='L841' name='L841'></a> 841     <a href='../D/uint32.html' title='Multiple defined in 3 places.'>uint32</a> maxraw;
<a id='L842' name='L842'></a> 842     <a href='../D/uint32.html' title='Multiple defined in 3 places.'>uint32</a> <a href='../Y/capabilities.html' title='Multiple used in 4 places.'>capabilities</a>;
<a id='L843' name='L843'></a> 843     <a href='../D/uint16.html' title='Multiple defined in 2 places.'>uint16</a> <a href='../Y/serverzone.html' title='Multiple used in 19 places.'>serverzone</a>;
<a id='L844' name='L844'></a> 844 <em class='brace'>}</em>;
<a id='L845' name='L845'></a> 845 
<a id='L846' name='L846'></a> 846 <em class='comment'>/* the following are used by loadparm for option lists */</em>
<a id='L847' name='L847'></a> 847 <strong class='reserved'>typedef</strong> <strong class='reserved'>enum</strong>
<a id='L848' name='L848'></a> 848 <em class='brace'>{</em>
<a id='L849' name='L849'></a> 849     <a href='../R/P_BOOL.html' title='Multiple referred from 88 places.'>P_BOOL</a>, <a href='../R/P_BOOLREV.html' title='Multiple referred from 8 places.'>P_BOOLREV</a>, <a href='../R/P_CHAR.html' title='Multiple referred from 5 places.'>P_CHAR</a>, <a href='../R/P_INTEGER.html' title='Multiple referred from 39 places.'>P_INTEGER</a>, <a href='../R/P_OCTAL.html' title='Multiple referred from 10 places.'>P_OCTAL</a>,
<a id='L850' name='L850'></a> 850     <a href='../R/P_STRING.html' title='Multiple referred from 115 places.'>P_STRING</a>, <a href='../R/P_USTRING.html' title='Multiple referred from 7 places.'>P_USTRING</a>, <a href='../R/P_GSTRING.html' title='Multiple referred from 4 places.'>P_GSTRING</a>, <a href='../R/P_UGSTRING.html' title='Multiple referred from 5 places.'>P_UGSTRING</a>, <a href='../R/P_ENUM.html' title='Multiple referred from 12 places.'>P_ENUM</a>, <a href='../R/P_SEP.html' title='Multiple referred from 4 places.'>P_SEP</a>
<a id='L851' name='L851'></a> 851 <em class='brace'>}</em> <a href='../R/parm_type.html' title='Multiple referred from 2 places.'>parm_type</a>;
<a id='L852' name='L852'></a> 852 
<a id='L853' name='L853'></a> 853 <strong class='reserved'>typedef</strong> <strong class='reserved'>enum</strong>
<a id='L854' name='L854'></a> 854 <em class='brace'>{</em>
<a id='L855' name='L855'></a> 855     <a href='../R/P_LOCAL.html' title='Multiple referred from 107 places.'>P_LOCAL</a>, <a href='../R/P_GLOBAL.html' title='Multiple referred from 147 places.'>P_GLOBAL</a>, <a href='../R/P_SEPARATOR.html' title='Multiple referred from 3 places.'>P_SEPARATOR</a>, <a href='../S/src--vfs--smbfs--helpers--param--loadparm.c.html#L900' title='Referred from 900 in src/vfs/smbfs/helpers/param/loadparm.c.'>P_NONE</a>
<a id='L856' name='L856'></a> 856 <em class='brace'>}</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L868' title='Referred from 868 in src/vfs/smbfs/helpers/include/smb.h.'>parm_class</a>;
<a id='L857' name='L857'></a> 857 
<a id='L858' name='L858'></a> 858 <strong class='reserved'>struct</strong> <a href='../R/enum_list.html' title='Multiple referred from 12 places.'>enum_list</a>
<a id='L859' name='L859'></a> 859 <em class='brace'>{</em>
<a id='L860' name='L860'></a> 860     <strong class='reserved'>int</strong> <a href='../Y/value.html' title='Multiple used in 144 places.'>value</a>;
<a id='L861' name='L861'></a> 861     <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/name.html' title='Multiple used in 736 places.'>name</a>;
<a id='L862' name='L862'></a> 862 <em class='brace'>}</em>;
<a id='L863' name='L863'></a> 863 
<a id='L864' name='L864'></a> 864 <strong class='reserved'>struct</strong> <a href='../R/parm_struct.html' title='Multiple referred from 6 places.'>parm_struct</a>
<a id='L865' name='L865'></a> 865 <em class='brace'>{</em>
<a id='L866' name='L866'></a> 866     <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/label.html' title='Multiple used in 160 places.'>label</a>;
<a id='L867' name='L867'></a> 867     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L851' title='Defined at 851 in src/vfs/smbfs/helpers/include/smb.h.'>parm_type</a> <a href='../Y/type.html' title='Multiple used in 300 places.'>type</a>;
<a id='L868' name='L868'></a> 868     <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L856' title='Defined at 856 in src/vfs/smbfs/helpers/include/smb.h.'>parm_class</a> <a href='../Y/class.html' title='Multiple used in 159 places.'>class</a>;
<a id='L869' name='L869'></a> 869     <strong class='reserved'>void</strong> *<a href='../Y/ptr.html' title='Multiple used in 123 places.'>ptr</a>;
<a id='L870' name='L870'></a> 870       <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> (*<a href='../Y/special.html' title='Multiple used in 3 places.'>special</a>) (<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *, <strong class='reserved'>char</strong> **);
<a id='L871' name='L871'></a> 871     <strong class='reserved'>const</strong> <strong class='reserved'>struct</strong> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L858' title='Defined at 858 in src/vfs/smbfs/helpers/include/smb.h.'>enum_list</a> *<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L858' title='Defined at 858 in src/vfs/smbfs/helpers/include/smb.h.'>enum_list</a>;
<a id='L872' name='L872'></a> 872     <strong class='reserved'>unsigned</strong> <a href='../Y/flags.html' title='Multiple used in 420 places.'>flags</a>;
<a id='L873' name='L873'></a> 873     <strong class='reserved'>union</strong>
<a id='L874' name='L874'></a> 874     <em class='brace'>{</em>
<a id='L875' name='L875'></a> 875         <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L28' title='Defined at 28 in src/vfs/smbfs/helpers/include/smb.h.'>BOOL</a> <a href='../Y/bvalue.html' title='Multiple used in 2 places.'>bvalue</a>;
<a id='L876' name='L876'></a> 876         <strong class='reserved'>int</strong> <a href='../Y/ivalue.html' title='Multiple used in 2 places.'>ivalue</a>;
<a id='L877' name='L877'></a> 877         <strong class='reserved'>char</strong> *<a href='../Y/svalue.html' title='Multiple used in 3 places.'>svalue</a>;
<a id='L878' name='L878'></a> 878         <strong class='reserved'>char</strong> <a href='../Y/cvalue.html' title='Multiple used in 2 places.'>cvalue</a>;
<a id='L879' name='L879'></a> 879     <em class='brace'>}</em> <a href='../Y/def.html' title='Multiple used in 33 places.'>def</a>;
<a id='L880' name='L880'></a> 880 <em class='brace'>}</em>;
<a id='L881' name='L881'></a> 881 
<a id='L882' name='L882'></a> 882 <strong class='reserved'>struct</strong> bitmap
<a id='L883' name='L883'></a> 883 <em class='brace'>{</em>
<a id='L884' name='L884'></a> 884     <a href='../D/uint32.html' title='Multiple defined in 3 places.'>uint32</a> *<a href='../Y/b.html' title='Multiple used in 443 places.'>b</a>;
<a id='L885' name='L885'></a> 885     <strong class='reserved'>int</strong> <a href='../Y/n.html' title='Multiple used in 370 places.'>n</a>;
<a id='L886' name='L886'></a> 886 <em class='brace'>}</em>;
<a id='L887' name='L887'></a> 887 
<a id='L888' name='L888'></a> 888 <em class='sharp'>#define</em> <a href='../R/FLAG_BASIC.html' title='Multiple referred from 23 places.'>FLAG_BASIC</a>      0x01    <em class='comment'>/* fundamental options */</em>
<a id='L889' name='L889'></a> 889 <em class='sharp'>#define</em> <a href='../R/FLAG_SHARE.html' title='Multiple referred from 68 places.'>FLAG_SHARE</a>      0x02    <em class='comment'>/* file sharing options */</em>
<a id='L890' name='L890'></a> 890 <em class='sharp'>#define</em> <a href='../R/FLAG_PRINT.html' title='Multiple referred from 30 places.'>FLAG_PRINT</a>      0x04    <em class='comment'>/* printing options */</em>
<a id='L891' name='L891'></a> 891 <em class='sharp'>#define</em> <a href='../R/FLAG_GLOBAL.html' title='Multiple referred from 58 places.'>FLAG_GLOBAL</a>     0x08    <em class='comment'>/* local options that should be globally settable in SWAT */</em>
<a id='L892' name='L892'></a> 892 <em class='sharp'>#define</em> <a href='../R/FLAG_DEPRECATED.html' title='Multiple referred from 2 places.'>FLAG_DEPRECATED</a> 0x10    <em class='comment'>/* options that should no longer be used */</em>
<a id='L893' name='L893'></a> 893 <em class='sharp'>#define</em> <a href='../R/FLAG_HIDE.html' title='Multiple referred from 4 places.'>FLAG_HIDE</a>       0x20    <em class='comment'>/* options that should be hidden in SWAT */</em>
<a id='L894' name='L894'></a> 894 
<a id='L895' name='L895'></a> 895 <em class='sharp'>#ifndef</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L896' title='Defined at 896 in src/vfs/smbfs/helpers/include/smb.h.'>LOCKING_VERSION</a>
<a id='L896' name='L896'></a> 896 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L895' title='Referred from 895 in src/vfs/smbfs/helpers/include/smb.h.'>LOCKING_VERSION</a> 4
<a id='L897' name='L897'></a> 897 <em class='sharp'>#endif</em> <em class='comment'>/* LOCKING_VERSION */</em>
<a id='L898' name='L898'></a> 898 
<a id='L899' name='L899'></a> 899 <em class='comment'>/* these are useful macros for checking validity of handles */</em>
<a id='L900' name='L900'></a> 900 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L904' title='Referred from 904 in src/vfs/smbfs/helpers/include/smb.h.'>OPEN_FSP</a>(<a href='../Y/fsp.html' title='Multiple used in 46 places.'>fsp</a>)    ((<a href='../Y/fsp.html' title='Multiple used in 46 places.'>fsp</a>) &amp;&amp; (<a href='../Y/fsp.html' title='Multiple used in 46 places.'>fsp</a>)-&gt;<a href='../Y/open.html' title='Multiple used in 47 places.'>open</a> &amp;&amp; !(<a href='../Y/fsp.html' title='Multiple used in 46 places.'>fsp</a>)-&gt;<a href='../Y/is_directory.html' title='Multiple used in 2 places.'>is_directory</a>)
<a id='L901' name='L901'></a> 901 <em class='sharp'>#define</em> OPEN_CONN(<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>)    ((<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>) &amp;&amp; (<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>)-&gt;<a href='../Y/open.html' title='Multiple used in 47 places.'>open</a>)
<a id='L902' name='L902'></a> 902 <em class='sharp'>#define</em> IS_IPC(<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>)       ((<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>) &amp;&amp; (<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>)-&gt;<a href='../Y/ipc.html' title='Multiple used in 2 places.'>ipc</a>)
<a id='L903' name='L903'></a> 903 <em class='sharp'>#define</em> IS_PRINT(<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>)       ((<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>) &amp;&amp; (<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>)-&gt;<a href='../S/src--diffviewer--ydiff.c.html#L1680' title='Defined at 1680 in src/diffviewer/ydiff.c.'>printer</a>)
<a id='L904' name='L904'></a> 904 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L906' title='Referred from 906 in src/vfs/smbfs/helpers/include/smb.h.'>FNUM_OK</a>(<a href='../Y/fsp.html' title='Multiple used in 46 places.'>fsp</a>,<a href='../Y/c.html' title='Multiple used in 1020 places.'>c</a>) (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L900' title='Defined at 900 in src/vfs/smbfs/helpers/include/smb.h.'>OPEN_FSP</a>(<a href='../Y/fsp.html' title='Multiple used in 46 places.'>fsp</a>) &amp;&amp; (<a href='../Y/c.html' title='Multiple used in 1020 places.'>c</a>)==(<a href='../Y/fsp.html' title='Multiple used in 46 places.'>fsp</a>)-&gt;<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>)
<a id='L905' name='L905'></a> 905 
<a id='L906' name='L906'></a> 906 <em class='sharp'>#define</em> CHECK_FSP(<a href='../Y/fsp.html' title='Multiple used in 46 places.'>fsp</a>,<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>) <strong class='reserved'>if</strong> (!<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L904' title='Defined at 904 in src/vfs/smbfs/helpers/include/smb.h.'>FNUM_OK</a>(<a href='../Y/fsp.html' title='Multiple used in 46 places.'>fsp</a>,<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>)) \
<a id='L907' name='L907'></a> 907                                <strong class='reserved'>return</strong>(<a href='../D/ERROR.html' title='Multiple defined in 2 places.'>ERROR</a>(<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1333' title='Defined at 1333 in src/vfs/smbfs/helpers/include/smb.h.'>ERRDOS</a>,<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L227' title='Defined at 227 in src/vfs/smbfs/helpers/include/smb.h.'>ERRbadfid</a>)); \
<a id='L908' name='L908'></a> 908                             <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>((<a href='../Y/fsp.html' title='Multiple used in 46 places.'>fsp</a>)-&gt;<a href='../Y/fd_ptr.html' title='Multiple used in 2 places.'>fd_ptr</a> == <a href='../Y/NULL.html' title='Multiple used in 5646 places.'>NULL</a>) \
<a id='L909' name='L909'></a> 909                                <strong class='reserved'>return</strong>(<a href='../D/ERROR.html' title='Multiple defined in 2 places.'>ERROR</a>(<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1333' title='Defined at 1333 in src/vfs/smbfs/helpers/include/smb.h.'>ERRDOS</a>,<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L231' title='Defined at 231 in src/vfs/smbfs/helpers/include/smb.h.'>ERRbadaccess</a>))
<a id='L910' name='L910'></a> 910 
<a id='L911' name='L911'></a> 911 <em class='sharp'>#define</em> CHECK_READ(<a href='../Y/fsp.html' title='Multiple used in 46 places.'>fsp</a>) <strong class='reserved'>if</strong> (!(<a href='../Y/fsp.html' title='Multiple used in 46 places.'>fsp</a>)-&gt;<a href='../Y/can_read.html' title='Multiple used in 2 places.'>can_read</a>) \
<a id='L912' name='L912'></a> 912                                <strong class='reserved'>return</strong>(<a href='../D/ERROR.html' title='Multiple defined in 2 places.'>ERROR</a>(<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1333' title='Defined at 1333 in src/vfs/smbfs/helpers/include/smb.h.'>ERRDOS</a>,<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L231' title='Defined at 231 in src/vfs/smbfs/helpers/include/smb.h.'>ERRbadaccess</a>))
<a id='L913' name='L913'></a> 913 <em class='sharp'>#define</em> CHECK_WRITE(<a href='../Y/fsp.html' title='Multiple used in 46 places.'>fsp</a>) <strong class='reserved'>if</strong> (!(<a href='../Y/fsp.html' title='Multiple used in 46 places.'>fsp</a>)-&gt;<a href='../Y/can_write.html' title='Multiple used in 2 places.'>can_write</a>) \
<a id='L914' name='L914'></a> 914                                <strong class='reserved'>return</strong>(<a href='../D/ERROR.html' title='Multiple defined in 2 places.'>ERROR</a>(<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1333' title='Defined at 1333 in src/vfs/smbfs/helpers/include/smb.h.'>ERRDOS</a>,<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L231' title='Defined at 231 in src/vfs/smbfs/helpers/include/smb.h.'>ERRbadaccess</a>))
<a id='L915' name='L915'></a> 915 <em class='sharp'>#define</em> CHECK_ERROR(<a href='../Y/fsp.html' title='Multiple used in 46 places.'>fsp</a>) <strong class='reserved'>if</strong> (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1537' title='Defined at 1537 in src/vfs/smbfs/helpers/include/smb.h.'>HAS_CACHED_ERROR</a>(<a href='../Y/fsp.html' title='Multiple used in 46 places.'>fsp</a>)) \
<a id='L916' name='L916'></a> 916                                <strong class='reserved'>return</strong>(<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1540' title='Defined at 1540 in src/vfs/smbfs/helpers/include/smb.h.'>CACHED_ERROR</a>(<a href='../Y/fsp.html' title='Multiple used in 46 places.'>fsp</a>))
<a id='L917' name='L917'></a> 917 
<a id='L918' name='L918'></a> 918 <em class='comment'>/* translates a connection number into a service number */</em>
<a id='L919' name='L919'></a> 919 <em class='sharp'>#define</em> <a href='../R/SNUM.html' title='Multiple referred from 2 places.'>SNUM</a>(<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>)         ((<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>)?(<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>)-&gt;<a href='../S/src--vfs--smbfs--helpers--param--loadparm.c.html#L347' title='Defined at 347 in src/vfs/smbfs/helpers/param/loadparm.c.'>service</a>:-1)
<a id='L920' name='L920'></a> 920 
<a id='L921' name='L921'></a> 921 <em class='comment'>/* access various service details */</em>
<a id='L922' name='L922'></a> 922 <em class='sharp'>#define</em> SERVICE(<a href='../Y/snum.html' title='Multiple used in 29 places.'>snum</a>)      (<a href='../Y/lp_servicename.html' title='Multiple used in 7 places.'>lp_servicename</a>(<a href='../Y/snum.html' title='Multiple used in 29 places.'>snum</a>))
<a id='L923' name='L923'></a> 923 <em class='sharp'>#define</em> PRINTCAP           (<a href='../Y/lp_printcapname.html' title='Multiple used in 3 places.'>lp_printcapname</a>())
<a id='L924' name='L924'></a> 924 <em class='sharp'>#define</em> PRINTCOMMAND(<a href='../Y/snum.html' title='Multiple used in 29 places.'>snum</a>) (<a href='../Y/lp_printcommand.html' title='Multiple used in 3 places.'>lp_printcommand</a>(<a href='../Y/snum.html' title='Multiple used in 29 places.'>snum</a>))
<a id='L925' name='L925'></a> 925 <em class='sharp'>#define</em> PRINTERNAME(<a href='../Y/snum.html' title='Multiple used in 29 places.'>snum</a>)  (<a href='../Y/lp_printername.html' title='Multiple used in 3 places.'>lp_printername</a>(<a href='../Y/snum.html' title='Multiple used in 29 places.'>snum</a>))
<a id='L926' name='L926'></a> 926 <em class='sharp'>#define</em> CAN_WRITE(<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>)    (!<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>-&gt;<a href='../Y/read_only.html' title='Multiple used in 11 places.'>read_only</a>)
<a id='L927' name='L927'></a> 927 <em class='sharp'>#define</em> <a href='../R/VALID_SNUM.html' title='Multiple referred from 2 places.'>VALID_SNUM</a>(<a href='../Y/snum.html' title='Multiple used in 29 places.'>snum</a>)   (<a href='../S/src--vfs--smbfs--helpers--param--loadparm.c.html#L2277' title='Defined at 2277 in src/vfs/smbfs/helpers/param/loadparm.c.'>lp_snum_ok</a>(<a href='../Y/snum.html' title='Multiple used in 29 places.'>snum</a>))
<a id='L928' name='L928'></a> 928 <em class='sharp'>#define</em> GUEST_OK(<a href='../Y/snum.html' title='Multiple used in 29 places.'>snum</a>)     (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L927' title='Defined at 927 in src/vfs/smbfs/helpers/include/smb.h.'>VALID_SNUM</a>(<a href='../Y/snum.html' title='Multiple used in 29 places.'>snum</a>) &amp;&amp; <a href='../Y/lp_guest_ok.html' title='Multiple used in 3 places.'>lp_guest_ok</a>(<a href='../Y/snum.html' title='Multiple used in 29 places.'>snum</a>))
<a id='L929' name='L929'></a> 929 <em class='sharp'>#define</em> GUEST_ONLY(<a href='../Y/snum.html' title='Multiple used in 29 places.'>snum</a>)   (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L927' title='Defined at 927 in src/vfs/smbfs/helpers/include/smb.h.'>VALID_SNUM</a>(<a href='../Y/snum.html' title='Multiple used in 29 places.'>snum</a>) &amp;&amp; <a href='../Y/lp_guest_only.html' title='Multiple used in 3 places.'>lp_guest_only</a>(<a href='../Y/snum.html' title='Multiple used in 29 places.'>snum</a>))
<a id='L930' name='L930'></a> 930 <em class='sharp'>#define</em> CAN_SETDIR(<a href='../Y/snum.html' title='Multiple used in 29 places.'>snum</a>)   (!<a href='../Y/lp_no_set_dir.html' title='Multiple used in 3 places.'>lp_no_set_dir</a>(<a href='../Y/snum.html' title='Multiple used in 29 places.'>snum</a>))
<a id='L931' name='L931'></a> 931 <em class='sharp'>#define</em> CAN_PRINT(<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>)    ((<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>) &amp;&amp; <a href='../Y/lp_print_ok.html' title='Multiple used in 3 places.'>lp_print_ok</a>((<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>)-&gt;<a href='../S/src--vfs--smbfs--helpers--param--loadparm.c.html#L347' title='Defined at 347 in src/vfs/smbfs/helpers/param/loadparm.c.'>service</a>))
<a id='L932' name='L932'></a> 932 <em class='sharp'>#define</em> MAP_HIDDEN(<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>)   ((<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>) &amp;&amp; <a href='../Y/lp_map_hidden.html' title='Multiple used in 3 places.'>lp_map_hidden</a>((<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>)-&gt;<a href='../S/src--vfs--smbfs--helpers--param--loadparm.c.html#L347' title='Defined at 347 in src/vfs/smbfs/helpers/param/loadparm.c.'>service</a>))
<a id='L933' name='L933'></a> 933 <em class='sharp'>#define</em> MAP_SYSTEM(<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>)   ((<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>) &amp;&amp; <a href='../Y/lp_map_system.html' title='Multiple used in 3 places.'>lp_map_system</a>((<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>)-&gt;<a href='../S/src--vfs--smbfs--helpers--param--loadparm.c.html#L347' title='Defined at 347 in src/vfs/smbfs/helpers/param/loadparm.c.'>service</a>))
<a id='L934' name='L934'></a> 934 <em class='sharp'>#define</em> MAP_ARCHIVE(<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>)   ((<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>) &amp;&amp; <a href='../Y/lp_map_archive.html' title='Multiple used in 3 places.'>lp_map_archive</a>((<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>)-&gt;<a href='../S/src--vfs--smbfs--helpers--param--loadparm.c.html#L347' title='Defined at 347 in src/vfs/smbfs/helpers/param/loadparm.c.'>service</a>))
<a id='L935' name='L935'></a> 935 <em class='sharp'>#define</em> IS_HIDDEN_PATH(<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>,<a href='../Y/path.html' title='Multiple used in 494 places.'>path</a>)  ((<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>) &amp;&amp; <a href='../S/src--vfs--smbfs--helpers--lib--util.c.html#L2606' title='Defined at 2606 in src/vfs/smbfs/helpers/lib/util.c.'>is_in_path</a>((<a href='../Y/path.html' title='Multiple used in 494 places.'>path</a>),(<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>)-&gt;<a href='../Y/hide_list.html' title='Multiple used in 2 places.'>hide_list</a>))
<a id='L936' name='L936'></a> 936 <em class='sharp'>#define</em> IS_VETO_PATH(<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>,<a href='../Y/path.html' title='Multiple used in 494 places.'>path</a>)  ((<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>) &amp;&amp; <a href='../S/src--vfs--smbfs--helpers--lib--util.c.html#L2606' title='Defined at 2606 in src/vfs/smbfs/helpers/lib/util.c.'>is_in_path</a>((<a href='../Y/path.html' title='Multiple used in 494 places.'>path</a>),(<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>)-&gt;<a href='../Y/veto_list.html' title='Multiple used in 2 places.'>veto_list</a>))
<a id='L937' name='L937'></a> 937 <em class='sharp'>#define</em> IS_VETO_OPLOCK_PATH(<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>,<a href='../Y/path.html' title='Multiple used in 494 places.'>path</a>)  ((<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>) &amp;&amp; <a href='../S/src--vfs--smbfs--helpers--lib--util.c.html#L2606' title='Defined at 2606 in src/vfs/smbfs/helpers/lib/util.c.'>is_in_path</a>((<a href='../Y/path.html' title='Multiple used in 494 places.'>path</a>),(<a href='../Y/conn.html' title='Multiple used in 48 places.'>conn</a>)-&gt;<a href='../Y/veto_oplock_list.html' title='Multiple used in 2 places.'>veto_oplock_list</a>))
<a id='L938' name='L938'></a> 938 
<a id='L939' name='L939'></a> 939 <em class='comment'>/* </em>
<a id='L940' name='L940'></a> 940 <em class='comment'> * Used by the stat cache code to check if a returned</em>
<a id='L941' name='L941'></a> 941 <em class='comment'> * stat structure is valid.</em>
<a id='L942' name='L942'></a> 942 <em class='comment'> */</em>
<a id='L943' name='L943'></a> 943 
<a id='L944' name='L944'></a> 944 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L945' title='Referred from 945 in src/vfs/smbfs/helpers/include/smb.h.'>VALID_STAT</a>(<a href='../Y/st.html' title='Multiple used in 447 places.'>st</a>) (<a href='../Y/st.html' title='Multiple used in 447 places.'>st</a>.<a href='../Y/st_nlink.html' title='Multiple used in 36 places.'>st_nlink</a> != 0)
<a id='L945' name='L945'></a> 945 <em class='sharp'>#define</em> VALID_STAT_OF_DIR(<a href='../Y/st.html' title='Multiple used in 447 places.'>st</a>) (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L944' title='Defined at 944 in src/vfs/smbfs/helpers/include/smb.h.'>VALID_STAT</a>(<a href='../Y/st.html' title='Multiple used in 447 places.'>st</a>) &amp;&amp; <a href='../D/S_ISDIR.html' title='Multiple defined in 2 places.'>S_ISDIR</a>(<a href='../Y/st.html' title='Multiple used in 447 places.'>st</a>.<a href='../Y/st_mode.html' title='Multiple used in 244 places.'>st_mode</a>))
<a id='L946' name='L946'></a> 946 
<a id='L947' name='L947'></a> 947 <em class='sharp'>#define</em> SMBENCRYPT()       (<a href='../Y/lp_encrypted_passwords.html' title='Multiple used in 3 places.'>lp_encrypted_passwords</a>())
<a id='L948' name='L948'></a> 948 
<a id='L949' name='L949'></a> 949 <em class='comment'>/* the basic packet size, assuming no words or bytes */</em>
<a id='L950' name='L950'></a> 950 <em class='sharp'>#define</em> <a href='../R/smb_size.html' title='Multiple referred from 50 places.'>smb_size</a> 39
<a id='L951' name='L951'></a> 951 
<a id='L952' name='L952'></a> 952 <em class='comment'>/* offsets into message for common items */</em>
<a id='L953' name='L953'></a> 953 <em class='sharp'>#define</em> <a href='../R/smb_com.html' title='Multiple referred from 34 places.'>smb_com</a> 8
<a id='L954' name='L954'></a> 954 <em class='sharp'>#define</em> <a href='../R/smb_rcls.html' title='Multiple referred from 26 places.'>smb_rcls</a> 9
<a id='L955' name='L955'></a> 955 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--lib--util.c.html#L492' title='Referred from 492 in src/vfs/smbfs/helpers/lib/util.c.'>smb_reh</a> 10
<a id='L956' name='L956'></a> 956 <em class='sharp'>#define</em> <a href='../R/smb_err.html' title='Multiple referred from 3 places.'>smb_err</a> 11
<a id='L957' name='L957'></a> 957 <em class='sharp'>#define</em> <a href='../R/smb_flg.html' title='Multiple referred from 4 places.'>smb_flg</a> 13
<a id='L958' name='L958'></a> 958 <em class='sharp'>#define</em> <a href='../R/smb_flg2.html' title='Multiple referred from 4 places.'>smb_flg2</a> 14
<a id='L959' name='L959'></a> 959 <em class='sharp'>#define</em> smb_reb 13
<a id='L960' name='L960'></a> 960 <em class='sharp'>#define</em> <a href='../R/smb_tid.html' title='Multiple referred from 25 places.'>smb_tid</a> 28
<a id='L961' name='L961'></a> 961 <em class='sharp'>#define</em> <a href='../R/smb_pid.html' title='Multiple referred from 3 places.'>smb_pid</a> 30
<a id='L962' name='L962'></a> 962 <em class='sharp'>#define</em> <a href='../R/smb_uid.html' title='Multiple referred from 4 places.'>smb_uid</a> 32
<a id='L963' name='L963'></a> 963 <em class='sharp'>#define</em> <a href='../R/smb_mid.html' title='Multiple referred from 6 places.'>smb_mid</a> 34
<a id='L964' name='L964'></a> 964 <em class='sharp'>#define</em> <a href='../R/smb_wct.html' title='Multiple referred from 6 places.'>smb_wct</a> 36
<a id='L965' name='L965'></a> 965 <em class='sharp'>#define</em> <a href='../R/smb_vwv.html' title='Multiple referred from 3 places.'>smb_vwv</a> 37
<a id='L966' name='L966'></a> 966 <em class='sharp'>#define</em> <a href='../R/smb_vwv0.html' title='Multiple referred from 68 places.'>smb_vwv0</a> 37
<a id='L967' name='L967'></a> 967 <em class='sharp'>#define</em> <a href='../R/smb_vwv1.html' title='Multiple referred from 10 places.'>smb_vwv1</a> 39
<a id='L968' name='L968'></a> 968 <em class='sharp'>#define</em> <a href='../R/smb_vwv2.html' title='Multiple referred from 18 places.'>smb_vwv2</a> 41
<a id='L969' name='L969'></a> 969 <em class='sharp'>#define</em> <a href='../R/smb_vwv3.html' title='Multiple referred from 14 places.'>smb_vwv3</a> 43
<a id='L970' name='L970'></a> 970 <em class='sharp'>#define</em> <a href='../R/smb_vwv4.html' title='Multiple referred from 10 places.'>smb_vwv4</a> 45
<a id='L971' name='L971'></a> 971 <em class='sharp'>#define</em> <a href='../R/smb_vwv5.html' title='Multiple referred from 11 places.'>smb_vwv5</a> 47
<a id='L972' name='L972'></a> 972 <em class='sharp'>#define</em> <a href='../R/smb_vwv6.html' title='Multiple referred from 9 places.'>smb_vwv6</a> 49
<a id='L973' name='L973'></a> 973 <em class='sharp'>#define</em> <a href='../R/smb_vwv7.html' title='Multiple referred from 9 places.'>smb_vwv7</a> 51
<a id='L974' name='L974'></a> 974 <em class='sharp'>#define</em> <a href='../R/smb_vwv8.html' title='Multiple referred from 7 places.'>smb_vwv8</a> 53
<a id='L975' name='L975'></a> 975 <em class='sharp'>#define</em> <a href='../R/smb_vwv9.html' title='Multiple referred from 2 places.'>smb_vwv9</a> 55
<a id='L976' name='L976'></a> 976 <em class='sharp'>#define</em> <a href='../R/smb_vwv10.html' title='Multiple referred from 4 places.'>smb_vwv10</a> 57
<a id='L977' name='L977'></a> 977 <em class='sharp'>#define</em> <a href='../R/smb_vwv11.html' title='Multiple referred from 5 places.'>smb_vwv11</a> 59
<a id='L978' name='L978'></a> 978 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1120' title='Referred from 1120 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv12</a> 61
<a id='L979' name='L979'></a> 979 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1121' title='Referred from 1121 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv13</a> 63
<a id='L980' name='L980'></a> 980 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1122' title='Referred from 1122 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv14</a> 65
<a id='L981' name='L981'></a> 981 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L2387' title='Referred from 2387 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_vwv15</a> 67
<a id='L982' name='L982'></a> 982 <em class='sharp'>#define</em> smb_vwv16 69
<a id='L983' name='L983'></a> 983 <em class='sharp'>#define</em> smb_vwv17 71
<a id='L984' name='L984'></a> 984 
<a id='L985' name='L985'></a> 985 <em class='comment'>/* flag defines. CIFS spec 3.1.1 */</em>
<a id='L986' name='L986'></a> 986 <em class='sharp'>#define</em> FLAG_SUPPORT_LOCKREAD       0x01
<a id='L987' name='L987'></a> 987 <em class='sharp'>#define</em> FLAG_CLIENT_BUF_AVAIL       0x02
<a id='L988' name='L988'></a> 988 <em class='sharp'>#define</em> FLAG_RESERVED               0x04
<a id='L989' name='L989'></a> 989 <em class='sharp'>#define</em> FLAG_CASELESS_PATHNAMES     0x08
<a id='L990' name='L990'></a> 990 <em class='sharp'>#define</em> FLAG_CANONICAL_PATHNAMES    0x10
<a id='L991' name='L991'></a> 991 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1599' title='Referred from 1599 in src/vfs/smbfs/helpers/include/smb.h.'>FLAG_REQUEST_OPLOCK</a>         0x20
<a id='L992' name='L992'></a> 992 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1599' title='Referred from 1599 in src/vfs/smbfs/helpers/include/smb.h.'>FLAG_REQUEST_BATCH_OPLOCK</a>   0x40
<a id='L993' name='L993'></a> 993 <em class='sharp'>#define</em> FLAG_REPLY                  0x80
<a id='L994' name='L994'></a> 994 
<a id='L995' name='L995'></a> 995 <em class='comment'>/* the complete */</em>
<a id='L996' name='L996'></a> 996 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L1084' title='Referred from 1084 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>SMBmkdir</a>      0x00      <em class='comment'>/* create directory */</em>
<a id='L997' name='L997'></a> 997 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L1119' title='Referred from 1119 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>SMBrmdir</a>      0x01      <em class='comment'>/* delete directory */</em>
<a id='L998' name='L998'></a> 998 <em class='sharp'>#define</em> SMBopen       0x02      <em class='comment'>/* open file */</em>
<a id='L999' name='L999'></a> 999 <em class='sharp'>#define</em> SMBcreate     0x03      <em class='comment'>/* create file */</em>
<a id='L1000' name='L1000'></a>1000 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L1282' title='Referred from 1282 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>SMBclose</a>      0x04      <em class='comment'>/* close file */</em>
<a id='L1001' name='L1001'></a>1001 <em class='sharp'>#define</em> SMBflush      0x05      <em class='comment'>/* flush file */</em>
<a id='L1002' name='L1002'></a>1002 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L1047' title='Referred from 1047 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>SMBunlink</a>     0x06      <em class='comment'>/* delete file */</em>
<a id='L1003' name='L1003'></a>1003 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L1007' title='Referred from 1007 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>SMBmv</a>         0x07      <em class='comment'>/* rename file */</em>
<a id='L1004' name='L1004'></a>1004 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L1707' title='Referred from 1707 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>SMBgetatr</a>     0x08      <em class='comment'>/* get file attributes */</em>
<a id='L1005' name='L1005'></a>1005 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L1759' title='Referred from 1759 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>SMBsetatr</a>     0x09      <em class='comment'>/* set file attributes */</em>
<a id='L1006' name='L1006'></a>1006 <em class='sharp'>#define</em> SMBread       0x0A      <em class='comment'>/* read from file */</em>
<a id='L1007' name='L1007'></a>1007 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L1607' title='Referred from 1607 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>SMBwrite</a>      0x0B      <em class='comment'>/* write to file */</em>
<a id='L1008' name='L1008'></a>1008 <em class='sharp'>#define</em> SMBlock       0x0C      <em class='comment'>/* lock byte range */</em>
<a id='L1009' name='L1009'></a>1009 <em class='sharp'>#define</em> SMBunlock     0x0D      <em class='comment'>/* unlock byte range */</em>
<a id='L1010' name='L1010'></a>1010 <em class='sharp'>#define</em> SMBctemp      0x0E      <em class='comment'>/* create temporary file */</em>
<a id='L1011' name='L1011'></a>1011 <em class='sharp'>#define</em> SMBmknew      0x0F      <em class='comment'>/* make new file */</em>
<a id='L1012' name='L1012'></a>1012 <em class='sharp'>#define</em> <a href='../R/SMBchkpth.html' title='Multiple referred from 2 places.'>SMBchkpth</a>     0x10      <em class='comment'>/* check directory path */</em>
<a id='L1013' name='L1013'></a>1013 <em class='sharp'>#define</em> SMBexit       0x11      <em class='comment'>/* process exit */</em>
<a id='L1014' name='L1014'></a>1014 <em class='sharp'>#define</em> SMBlseek      0x12      <em class='comment'>/* seek */</em>
<a id='L1015' name='L1015'></a>1015 <em class='sharp'>#define</em> SMBtcon       0x70      <em class='comment'>/* tree connect */</em>
<a id='L1016' name='L1016'></a>1016 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L926' title='Referred from 926 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>SMBtconX</a>      0x75      <em class='comment'>/* tree connect and X */</em>
<a id='L1017' name='L1017'></a>1017 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L982' title='Referred from 982 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>SMBtdis</a>       0x71      <em class='comment'>/* tree disconnect */</em>
<a id='L1018' name='L1018'></a>1018 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L2361' title='Referred from 2361 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>SMBnegprot</a>    0x72      <em class='comment'>/* negotiate protocol */</em>
<a id='L1019' name='L1019'></a>1019 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L3076' title='Referred from 3076 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>SMBdskattr</a>    0x80      <em class='comment'>/* get disk attributes */</em>
<a id='L1020' name='L1020'></a>1020 <em class='sharp'>#define</em> SMBsearch     0x81      <em class='comment'>/* search directory */</em>
<a id='L1021' name='L1021'></a>1021 <em class='sharp'>#define</em> SMBsplopen    0xC0      <em class='comment'>/* open print spool file */</em>
<a id='L1022' name='L1022'></a>1022 <em class='sharp'>#define</em> SMBsplwr      0xC1      <em class='comment'>/* write to print spool file */</em>
<a id='L1023' name='L1023'></a>1023 <em class='sharp'>#define</em> SMBsplclose   0xC2      <em class='comment'>/* close print spool file */</em>
<a id='L1024' name='L1024'></a>1024 <em class='sharp'>#define</em> SMBsplretq    0xC3      <em class='comment'>/* return print queue */</em>
<a id='L1025' name='L1025'></a>1025 <em class='sharp'>#define</em> SMBsends      0xD0      <em class='comment'>/* send single block message */</em>
<a id='L1026' name='L1026'></a>1026 <em class='sharp'>#define</em> SMBsendb      0xD1      <em class='comment'>/* send broadcast message */</em>
<a id='L1027' name='L1027'></a>1027 <em class='sharp'>#define</em> SMBfwdname    0xD2      <em class='comment'>/* forward user name */</em>
<a id='L1028' name='L1028'></a>1028 <em class='sharp'>#define</em> SMBcancelf    0xD3      <em class='comment'>/* cancel forward */</em>
<a id='L1029' name='L1029'></a>1029 <em class='sharp'>#define</em> SMBgetmac     0xD4      <em class='comment'>/* get machine name */</em>
<a id='L1030' name='L1030'></a>1030 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L2975' title='Referred from 2975 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>SMBsendstrt</a>   0xD5      <em class='comment'>/* send start of multi-block message */</em>
<a id='L1031' name='L1031'></a>1031 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L3046' title='Referred from 3046 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>SMBsendend</a>    0xD6      <em class='comment'>/* send end of multi-block message */</em>
<a id='L1032' name='L1032'></a>1032 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L3015' title='Referred from 3015 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>SMBsendtxt</a>    0xD7      <em class='comment'>/* send text of multi-block message */</em>
<a id='L1033' name='L1033'></a>1033 
<a id='L1034' name='L1034'></a>1034 <em class='comment'>/* Core+ protocol */</em>
<a id='L1035' name='L1035'></a>1035 <em class='sharp'>#define</em> SMBlockread       0x13  <em class='comment'>/* Lock a range and read */</em>
<a id='L1036' name='L1036'></a>1036 <em class='sharp'>#define</em> SMBwriteunlock 0x14     <em class='comment'>/* Unlock a range then write */</em>
<a id='L1037' name='L1037'></a>1037 <em class='sharp'>#define</em> SMBreadbraw   0x1a      <em class='comment'>/* read a block of data with no smb header */</em>
<a id='L1038' name='L1038'></a>1038 <em class='sharp'>#define</em> SMBwritebraw  0x1d      <em class='comment'>/* write a block of data with no smb header */</em>
<a id='L1039' name='L1039'></a>1039 <em class='sharp'>#define</em> SMBwritec     0x20      <em class='comment'>/* secondary write request */</em>
<a id='L1040' name='L1040'></a>1040 <em class='sharp'>#define</em> SMBwriteclose 0x2c      <em class='comment'>/* write a file then close it */</em>
<a id='L1041' name='L1041'></a>1041 
<a id='L1042' name='L1042'></a>1042 <em class='comment'>/* dos extended protocol */</em>
<a id='L1043' name='L1043'></a>1043 <em class='sharp'>#define</em> SMBreadBraw      0x1A   <em class='comment'>/* read block raw */</em>
<a id='L1044' name='L1044'></a>1044 <em class='sharp'>#define</em> SMBreadBmpx      0x1B   <em class='comment'>/* read block multiplexed */</em>
<a id='L1045' name='L1045'></a>1045 <em class='sharp'>#define</em> SMBreadBs        0x1C   <em class='comment'>/* read block (secondary response) */</em>
<a id='L1046' name='L1046'></a>1046 <em class='sharp'>#define</em> SMBwriteBraw     0x1D   <em class='comment'>/* write block raw */</em>
<a id='L1047' name='L1047'></a>1047 <em class='sharp'>#define</em> SMBwriteBmpx     0x1E   <em class='comment'>/* write block multiplexed */</em>
<a id='L1048' name='L1048'></a>1048 <em class='sharp'>#define</em> SMBwriteBs       0x1F   <em class='comment'>/* write block (secondary request) */</em>
<a id='L1049' name='L1049'></a>1049 <em class='sharp'>#define</em> SMBwriteC        0x20   <em class='comment'>/* write complete response */</em>
<a id='L1050' name='L1050'></a>1050 <em class='sharp'>#define</em> SMBsetattrE      0x22   <em class='comment'>/* set file attributes expanded */</em>
<a id='L1051' name='L1051'></a>1051 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L1648' title='Referred from 1648 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>SMBgetattrE</a>      0x23   <em class='comment'>/* get file attributes expanded */</em>
<a id='L1052' name='L1052'></a>1052 <em class='sharp'>#define</em> <a href='../R/SMBlockingX.html' title='Multiple referred from 2 places.'>SMBlockingX</a>      0x24   <em class='comment'>/* lock/unlock byte ranges and X */</em>
<a id='L1053' name='L1053'></a>1053 <em class='sharp'>#define</em> <a href='../R/SMBtrans.html' title='Multiple referred from 11 places.'>SMBtrans</a>         0x25   <em class='comment'>/* transaction - name, bytes in/out */</em>
<a id='L1054' name='L1054'></a>1054 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L318' title='Referred from 318 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>SMBtranss</a>        0x26   <em class='comment'>/* transaction (secondary request/response) */</em>
<a id='L1055' name='L1055'></a>1055 <em class='sharp'>#define</em> SMBioctl         0x27   <em class='comment'>/* IOCTL */</em>
<a id='L1056' name='L1056'></a>1056 <em class='sharp'>#define</em> SMBioctls        0x28   <em class='comment'>/* IOCTL  (secondary request/response) */</em>
<a id='L1057' name='L1057'></a>1057 <em class='sharp'>#define</em> SMBcopy          0x29   <em class='comment'>/* copy */</em>
<a id='L1058' name='L1058'></a>1058 <em class='sharp'>#define</em> SMBmove          0x2A   <em class='comment'>/* move */</em>
<a id='L1059' name='L1059'></a>1059 <em class='sharp'>#define</em> SMBecho          0x2B   <em class='comment'>/* echo */</em>
<a id='L1060' name='L1060'></a>1060 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L1239' title='Referred from 1239 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>SMBopenX</a>         0x2D   <em class='comment'>/* open and X */</em>
<a id='L1061' name='L1061'></a>1061 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L1409' title='Referred from 1409 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>SMBreadX</a>         0x2E   <em class='comment'>/* read and X */</em>
<a id='L1062' name='L1062'></a>1062 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L1516' title='Referred from 1516 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>SMBwriteX</a>        0x2F   <em class='comment'>/* write and X */</em>
<a id='L1063' name='L1063'></a>1063 <em class='sharp'>#define</em> <a href='../R/SMBsesssetupX.html' title='Multiple referred from 2 places.'>SMBsesssetupX</a>    0x73   <em class='comment'>/* Session Set Up &amp; X (including User Logon) */</em>
<a id='L1064' name='L1064'></a>1064 <em class='sharp'>#define</em> SMBffirst        0x82   <em class='comment'>/* find first */</em>
<a id='L1065' name='L1065'></a>1065 <em class='sharp'>#define</em> SMBfunique       0x83   <em class='comment'>/* find unique */</em>
<a id='L1066' name='L1066'></a>1066 <em class='sharp'>#define</em> SMBfclose        0x84   <em class='comment'>/* find close */</em>
<a id='L1067' name='L1067'></a>1067 <em class='sharp'>#define</em> SMBinvalid       0xFE   <em class='comment'>/* invalid command */</em>
<a id='L1068' name='L1068'></a>1068 
<a id='L1069' name='L1069'></a>1069 <em class='comment'>/* Extended 2.0 protocol */</em>
<a id='L1070' name='L1070'></a>1070 <em class='sharp'>#define</em> <a href='../R/SMBtrans2.html' title='Multiple referred from 9 places.'>SMBtrans2</a>        0x32   <em class='comment'>/* TRANS2 protocol set */</em>
<a id='L1071' name='L1071'></a>1071 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L318' title='Referred from 318 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>SMBtranss2</a>       0x33   <em class='comment'>/* TRANS2 protocol set, secondary command */</em>
<a id='L1072' name='L1072'></a>1072 <em class='sharp'>#define</em> SMBfindclose     0x34   <em class='comment'>/* Terminate a TRANSACT2_FINDFIRST */</em>
<a id='L1073' name='L1073'></a>1073 <em class='sharp'>#define</em> SMBfindnclose    0x35   <em class='comment'>/* Terminate a TRANSACT2_FINDNOTIFYFIRST */</em>
<a id='L1074' name='L1074'></a>1074 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L877' title='Referred from 877 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>SMBulogoffX</a>      0x74   <em class='comment'>/* user logoff */</em>
<a id='L1075' name='L1075'></a>1075 
<a id='L1076' name='L1076'></a>1076 <em class='comment'>/* NT SMB extensions. */</em>
<a id='L1077' name='L1077'></a>1077 <em class='sharp'>#define</em> SMBnttrans       0xA0   <em class='comment'>/* NT transact */</em>
<a id='L1078' name='L1078'></a>1078 <em class='sharp'>#define</em> SMBnttranss      0xA1   <em class='comment'>/* NT transact secondary */</em>
<a id='L1079' name='L1079'></a>1079 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L1155' title='Referred from 1155 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>SMBntcreateX</a>     0xA2   <em class='comment'>/* NT create and X */</em>
<a id='L1080' name='L1080'></a>1080 <em class='sharp'>#define</em> SMBntcancel      0xA4   <em class='comment'>/* NT cancel */</em>
<a id='L1081' name='L1081'></a>1081 
<a id='L1082' name='L1082'></a>1082 <em class='comment'>/* These are the TRANS2 sub commands */</em>
<a id='L1083' name='L1083'></a>1083 <em class='sharp'>#define</em> TRANSACT2_OPEN                        0
<a id='L1084' name='L1084'></a>1084 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L2197' title='Referred from 2197 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>TRANSACT2_FINDFIRST</a>                   1
<a id='L1085' name='L1085'></a>1085 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L2207' title='Referred from 2207 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>TRANSACT2_FINDNEXT</a>                    2
<a id='L1086' name='L1086'></a>1086 <em class='sharp'>#define</em> TRANSACT2_QFSINFO                     3
<a id='L1087' name='L1087'></a>1087 <em class='sharp'>#define</em> TRANSACT2_SETFSINFO                   4
<a id='L1088' name='L1088'></a>1088 <em class='sharp'>#define</em> <a href='../R/TRANSACT2_QPATHINFO.html' title='Multiple referred from 2 places.'>TRANSACT2_QPATHINFO</a>                   5
<a id='L1089' name='L1089'></a>1089 <em class='sharp'>#define</em> TRANSACT2_SETPATHINFO                 6
<a id='L1090' name='L1090'></a>1090 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L1960' title='Referred from 1960 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>TRANSACT2_QFILEINFO</a>                   7
<a id='L1091' name='L1091'></a>1091 <em class='sharp'>#define</em> TRANSACT2_SETFILEINFO                 8
<a id='L1092' name='L1092'></a>1092 <em class='sharp'>#define</em> TRANSACT2_FSCTL                       9
<a id='L1093' name='L1093'></a>1093 <em class='sharp'>#define</em> TRANSACT2_IOCTL                     0xA
<a id='L1094' name='L1094'></a>1094 <em class='sharp'>#define</em> TRANSACT2_FINDNOTIFYFIRST           0xB
<a id='L1095' name='L1095'></a>1095 <em class='sharp'>#define</em> TRANSACT2_FINDNOTIFYNEXT            0xC
<a id='L1096' name='L1096'></a>1096 <em class='sharp'>#define</em> TRANSACT2_MKDIR                     0xD
<a id='L1097' name='L1097'></a>1097 <em class='sharp'>#define</em> TRANSACT2_SESSION_SETUP             0xE
<a id='L1098' name='L1098'></a>1098 <em class='sharp'>#define</em> TRANSACT2_GET_DFS_REFERRAL         0x10
<a id='L1099' name='L1099'></a>1099 <em class='sharp'>#define</em> TRANSACT2_REPORT_DFS_INCONSISTANCY 0x11
<a id='L1100' name='L1100'></a>1100 
<a id='L1101' name='L1101'></a>1101 <em class='comment'>/* These are the NT transact sub commands. */</em>
<a id='L1102' name='L1102'></a>1102 <em class='sharp'>#define</em> NT_TRANSACT_CREATE                1
<a id='L1103' name='L1103'></a>1103 <em class='sharp'>#define</em> NT_TRANSACT_IOCTL                 2
<a id='L1104' name='L1104'></a>1104 <em class='sharp'>#define</em> NT_TRANSACT_SET_SECURITY_DESC     3
<a id='L1105' name='L1105'></a>1105 <em class='sharp'>#define</em> NT_TRANSACT_NOTIFY_CHANGE         4
<a id='L1106' name='L1106'></a>1106 <em class='sharp'>#define</em> NT_TRANSACT_RENAME                5
<a id='L1107' name='L1107'></a>1107 <em class='sharp'>#define</em> NT_TRANSACT_QUERY_SECURITY_DESC   6
<a id='L1108' name='L1108'></a>1108 
<a id='L1109' name='L1109'></a>1109 <em class='comment'>/* these are the trans2 sub fields for primary requests */</em>
<a id='L1110' name='L1110'></a>1110 <em class='sharp'>#define</em> <a href='../R/smb_tpscnt.html' title='Multiple referred from 2 places.'>smb_tpscnt</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a>
<a id='L1111' name='L1111'></a>1111 <em class='sharp'>#define</em> <a href='../R/smb_tdscnt.html' title='Multiple referred from 2 places.'>smb_tdscnt</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L967' title='Defined at 967 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv1</a>
<a id='L1112' name='L1112'></a>1112 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L268' title='Referred from 268 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_mprcnt</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L968' title='Defined at 968 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv2</a>
<a id='L1113' name='L1113'></a>1113 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L269' title='Referred from 269 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_mdrcnt</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L969' title='Defined at 969 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv3</a>
<a id='L1114' name='L1114'></a>1114 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L270' title='Referred from 270 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_msrcnt</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L970' title='Defined at 970 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv4</a>
<a id='L1115' name='L1115'></a>1115 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L271' title='Referred from 271 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_flags</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L971' title='Defined at 971 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv5</a>
<a id='L1116' name='L1116'></a>1116 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L272' title='Referred from 272 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_timeout</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L972' title='Defined at 972 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv6</a>
<a id='L1117' name='L1117'></a>1117 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L273' title='Referred from 273 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_pscnt</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L975' title='Defined at 975 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv9</a>
<a id='L1118' name='L1118'></a>1118 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L274' title='Referred from 274 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_psoff</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L976' title='Defined at 976 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv10</a>
<a id='L1119' name='L1119'></a>1119 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L275' title='Referred from 275 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_dscnt</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L977' title='Defined at 977 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv11</a>
<a id='L1120' name='L1120'></a>1120 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L276' title='Referred from 276 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_dsoff</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L978' title='Defined at 978 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv12</a>
<a id='L1121' name='L1121'></a>1121 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L277' title='Referred from 277 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_suwcnt</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L979' title='Defined at 979 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv13</a>
<a id='L1122' name='L1122'></a>1122 <em class='sharp'>#define</em> <a href='../R/smb_setup.html' title='Multiple referred from 4 places.'>smb_setup</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L980' title='Defined at 980 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv14</a>
<a id='L1123' name='L1123'></a>1123 <em class='sharp'>#define</em> smb_setup0 <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1122' title='Defined at 1122 in src/vfs/smbfs/helpers/include/smb.h.'>smb_setup</a>
<a id='L1124' name='L1124'></a>1124 <em class='sharp'>#define</em> smb_setup1 (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1122' title='Defined at 1122 in src/vfs/smbfs/helpers/include/smb.h.'>smb_setup</a>+2)
<a id='L1125' name='L1125'></a>1125 <em class='sharp'>#define</em> smb_setup2 (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1122' title='Defined at 1122 in src/vfs/smbfs/helpers/include/smb.h.'>smb_setup</a>+4)
<a id='L1126' name='L1126'></a>1126 
<a id='L1127' name='L1127'></a>1127 <em class='comment'>/* these are for the secondary requests */</em>
<a id='L1128' name='L1128'></a>1128 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L326' title='Referred from 326 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_spscnt</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L968' title='Defined at 968 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv2</a>
<a id='L1129' name='L1129'></a>1129 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L327' title='Referred from 327 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_spsoff</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L969' title='Defined at 969 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv3</a>
<a id='L1130' name='L1130'></a>1130 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L328' title='Referred from 328 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_spsdisp</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L970' title='Defined at 970 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv4</a>
<a id='L1131' name='L1131'></a>1131 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L329' title='Referred from 329 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_sdscnt</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L971' title='Defined at 971 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv5</a>
<a id='L1132' name='L1132'></a>1132 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L330' title='Referred from 330 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_sdsoff</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L972' title='Defined at 972 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv6</a>
<a id='L1133' name='L1133'></a>1133 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L331' title='Referred from 331 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_sdsdisp</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L973' title='Defined at 973 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv7</a>
<a id='L1134' name='L1134'></a>1134 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L333' title='Referred from 333 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_sfid</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L974' title='Defined at 974 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv8</a>
<a id='L1135' name='L1135'></a>1135 
<a id='L1136' name='L1136'></a>1136 <em class='comment'>/* and these for responses */</em>
<a id='L1137' name='L1137'></a>1137 <em class='sharp'>#define</em> <a href='../R/smb_tprcnt.html' title='Multiple referred from 2 places.'>smb_tprcnt</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a>
<a id='L1138' name='L1138'></a>1138 <em class='sharp'>#define</em> <a href='../R/smb_tdrcnt.html' title='Multiple referred from 2 places.'>smb_tdrcnt</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L967' title='Defined at 967 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv1</a>
<a id='L1139' name='L1139'></a>1139 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L404' title='Referred from 404 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_prcnt</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L969' title='Defined at 969 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv3</a>
<a id='L1140' name='L1140'></a>1140 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L417' title='Referred from 417 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_proff</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L970' title='Defined at 970 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv4</a>
<a id='L1141' name='L1141'></a>1141 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L416' title='Referred from 416 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_prdisp</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L971' title='Defined at 971 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv5</a>
<a id='L1142' name='L1142'></a>1142 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L403' title='Referred from 403 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_drcnt</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L972' title='Defined at 972 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv6</a>
<a id='L1143' name='L1143'></a>1143 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L414' title='Referred from 414 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_droff</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L973' title='Defined at 973 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv7</a>
<a id='L1144' name='L1144'></a>1144 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L413' title='Referred from 413 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_drdisp</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L974' title='Defined at 974 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv8</a>
<a id='L1145' name='L1145'></a>1145 
<a id='L1146' name='L1146'></a>1146 <em class='comment'>/* these are for the NT trans primary request. */</em>
<a id='L1147' name='L1147'></a>1147 <em class='sharp'>#define</em> smb_nt_MaxSetupCount <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a>
<a id='L1148' name='L1148'></a>1148 <em class='sharp'>#define</em> smb_nt_Flags (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 1)
<a id='L1149' name='L1149'></a>1149 <em class='sharp'>#define</em> smb_nt_TotalParameterCount (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 3)
<a id='L1150' name='L1150'></a>1150 <em class='sharp'>#define</em> smb_nt_TotalDataCount (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 7)
<a id='L1151' name='L1151'></a>1151 <em class='sharp'>#define</em> smb_nt_MaxParameterCount (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 11)
<a id='L1152' name='L1152'></a>1152 <em class='sharp'>#define</em> smb_nt_MaxDataCount (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 15)
<a id='L1153' name='L1153'></a>1153 <em class='sharp'>#define</em> smb_nt_ParameterCount (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 19)
<a id='L1154' name='L1154'></a>1154 <em class='sharp'>#define</em> smb_nt_ParameterOffset (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 23)
<a id='L1155' name='L1155'></a>1155 <em class='sharp'>#define</em> smb_nt_DataCount (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 27)
<a id='L1156' name='L1156'></a>1156 <em class='sharp'>#define</em> smb_nt_DataOffset (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 31)
<a id='L1157' name='L1157'></a>1157 <em class='sharp'>#define</em> smb_nt_SetupCount (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 35)
<a id='L1158' name='L1158'></a>1158 <em class='sharp'>#define</em> smb_nt_Function (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 36)
<a id='L1159' name='L1159'></a>1159 <em class='sharp'>#define</em> smb_nt_SetupStart (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 38)
<a id='L1160' name='L1160'></a>1160 
<a id='L1161' name='L1161'></a>1161 <em class='comment'>/* these are for the NT trans secondary request. */</em>
<a id='L1162' name='L1162'></a>1162 <em class='sharp'>#define</em> smb_nts_TotalParameterCount (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 3)
<a id='L1163' name='L1163'></a>1163 <em class='sharp'>#define</em> smb_nts_TotalDataCount (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 7)
<a id='L1164' name='L1164'></a>1164 <em class='sharp'>#define</em> smb_nts_ParameterCount (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 11)
<a id='L1165' name='L1165'></a>1165 <em class='sharp'>#define</em> smb_nts_ParameterOffset (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 15)
<a id='L1166' name='L1166'></a>1166 <em class='sharp'>#define</em> smb_nts_ParameterDisplacement (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 19)
<a id='L1167' name='L1167'></a>1167 <em class='sharp'>#define</em> smb_nts_DataCount (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 23)
<a id='L1168' name='L1168'></a>1168 <em class='sharp'>#define</em> smb_nts_DataOffset (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 27)
<a id='L1169' name='L1169'></a>1169 <em class='sharp'>#define</em> smb_nts_DataDisplacement (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 31)
<a id='L1170' name='L1170'></a>1170 
<a id='L1171' name='L1171'></a>1171 <em class='comment'>/* these are for the NT trans reply. */</em>
<a id='L1172' name='L1172'></a>1172 <em class='sharp'>#define</em> smb_ntr_TotalParameterCount (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 3)
<a id='L1173' name='L1173'></a>1173 <em class='sharp'>#define</em> smb_ntr_TotalDataCount (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 7)
<a id='L1174' name='L1174'></a>1174 <em class='sharp'>#define</em> smb_ntr_ParameterCount (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 11)
<a id='L1175' name='L1175'></a>1175 <em class='sharp'>#define</em> smb_ntr_ParameterOffset (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 15)
<a id='L1176' name='L1176'></a>1176 <em class='sharp'>#define</em> smb_ntr_ParameterDisplacement (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 19)
<a id='L1177' name='L1177'></a>1177 <em class='sharp'>#define</em> smb_ntr_DataCount (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 23)
<a id='L1178' name='L1178'></a>1178 <em class='sharp'>#define</em> smb_ntr_DataOffset (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 27)
<a id='L1179' name='L1179'></a>1179 <em class='sharp'>#define</em> smb_ntr_DataDisplacement (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 31)
<a id='L1180' name='L1180'></a>1180 
<a id='L1181' name='L1181'></a>1181 <em class='comment'>/* these are for the NT create_and_X */</em>
<a id='L1182' name='L1182'></a>1182 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L1168' title='Referred from 1168 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_ntcreate_NameLength</a> (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 5)
<a id='L1183' name='L1183'></a>1183 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L1160' title='Referred from 1160 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_ntcreate_Flags</a> (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 7)
<a id='L1184' name='L1184'></a>1184 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L1161' title='Referred from 1161 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_ntcreate_RootDirectoryFid</a> (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 11)
<a id='L1185' name='L1185'></a>1185 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L1162' title='Referred from 1162 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_ntcreate_DesiredAccess</a> (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 15)
<a id='L1186' name='L1186'></a>1186 <em class='sharp'>#define</em> smb_ntcreate_AllocationSize (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 19)
<a id='L1187' name='L1187'></a>1187 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L1163' title='Referred from 1163 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_ntcreate_FileAttributes</a> (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 27)
<a id='L1188' name='L1188'></a>1188 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L1164' title='Referred from 1164 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_ntcreate_ShareAccess</a> (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 31)
<a id='L1189' name='L1189'></a>1189 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L1165' title='Referred from 1165 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_ntcreate_CreateDisposition</a> (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 35)
<a id='L1190' name='L1190'></a>1190 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L1166' title='Referred from 1166 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_ntcreate_CreateOptions</a> (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 39)
<a id='L1191' name='L1191'></a>1191 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L1167' title='Referred from 1167 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>smb_ntcreate_ImpersonationLevel</a> (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 43)
<a id='L1192' name='L1192'></a>1192 <em class='sharp'>#define</em> smb_ntcreate_SecurityFlags (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L966' title='Defined at 966 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv0</a> + 47)
<a id='L1193' name='L1193'></a>1193 
<a id='L1194' name='L1194'></a>1194 <em class='comment'>/* this is used on a TConX. I'm not sure the name is very helpful though */</em>
<a id='L1195' name='L1195'></a>1195 <em class='sharp'>#define</em> SMB_SUPPORT_SEARCH_BITS        0x0001
<a id='L1196' name='L1196'></a>1196 
<a id='L1197' name='L1197'></a>1197 <em class='comment'>/* these are the constants used in the above call. */</em>
<a id='L1198' name='L1198'></a>1198 <em class='comment'>/* DesiredAccess */</em>
<a id='L1199' name='L1199'></a>1199 <em class='comment'>/* File Specific access rights. */</em>
<a id='L1200' name='L1200'></a>1200 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1237' title='Referred from 1237 in src/vfs/smbfs/helpers/include/smb.h.'>FILE_READ_DATA</a>        0x001
<a id='L1201' name='L1201'></a>1201 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1240' title='Referred from 1240 in src/vfs/smbfs/helpers/include/smb.h.'>FILE_WRITE_DATA</a>       0x002
<a id='L1202' name='L1202'></a>1202 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1240' title='Referred from 1240 in src/vfs/smbfs/helpers/include/smb.h.'>FILE_APPEND_DATA</a>      0x004
<a id='L1203' name='L1203'></a>1203 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1237' title='Referred from 1237 in src/vfs/smbfs/helpers/include/smb.h.'>FILE_READ_EA</a>          0x008
<a id='L1204' name='L1204'></a>1204 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1239' title='Referred from 1239 in src/vfs/smbfs/helpers/include/smb.h.'>FILE_WRITE_EA</a>         0x010
<a id='L1205' name='L1205'></a>1205 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1242' title='Referred from 1242 in src/vfs/smbfs/helpers/include/smb.h.'>FILE_EXECUTE</a>          0x020
<a id='L1206' name='L1206'></a>1206 <em class='sharp'>#define</em> FILE_DELETE_CHILD     0x040
<a id='L1207' name='L1207'></a>1207 <em class='sharp'>#define</em> <a href='../R/FILE_READ_ATTRIBUTES.html' title='Multiple referred from 2 places.'>FILE_READ_ATTRIBUTES</a>  0x080
<a id='L1208' name='L1208'></a>1208 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1239' title='Referred from 1239 in src/vfs/smbfs/helpers/include/smb.h.'>FILE_WRITE_ATTRIBUTES</a> 0x100
<a id='L1209' name='L1209'></a>1209 
<a id='L1210' name='L1210'></a>1210 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1231' title='Referred from 1231 in src/vfs/smbfs/helpers/include/smb.h.'>FILE_ALL_ATTRIBUTES</a>   0x1FF
<a id='L1211' name='L1211'></a>1211 
<a id='L1212' name='L1212'></a>1212 <em class='comment'>/* Generic access masks &amp; rights. */</em>
<a id='L1213' name='L1213'></a>1213 <em class='sharp'>#define</em> SPECIFIC_RIGHTS_MASK 0x00FFFFL
<a id='L1214' name='L1214'></a>1214 <em class='sharp'>#define</em> STANDARD_RIGHTS_MASK 0xFF0000L
<a id='L1215' name='L1215'></a>1215 <em class='sharp'>#define</em> DELETE_ACCESS        (1L&lt;&lt;16)
<a id='L1216' name='L1216'></a>1216 <em class='sharp'>#define</em> <a href='../R/READ_CONTROL_ACCESS.html' title='Multiple referred from 3 places.'>READ_CONTROL_ACCESS</a>  (1L&lt;&lt;17)
<a id='L1217' name='L1217'></a>1217 <em class='sharp'>#define</em> WRITE_DAC_ACCESS     (1L&lt;&lt;18)
<a id='L1218' name='L1218'></a>1218 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1244' title='Referred from 1244 in src/vfs/smbfs/helpers/include/smb.h.'>WRITE_OWNER_ACCESS</a>   (1L&lt;&lt;19)
<a id='L1219' name='L1219'></a>1219 <em class='sharp'>#define</em> <a href='../R/SYNCHRONIZE_ACCESS.html' title='Multiple referred from 3 places.'>SYNCHRONIZE_ACCESS</a>   (1L&lt;&lt;20)
<a id='L1220' name='L1220'></a>1220 
<a id='L1221' name='L1221'></a>1221 <em class='sharp'>#define</em> SYSTEM_SECURITY_ACCESS (1L&lt;&lt;24)
<a id='L1222' name='L1222'></a>1222 <em class='sharp'>#define</em> GENERIC_ALL_ACCESS   (1&lt;&lt;28)
<a id='L1223' name='L1223'></a>1223 <em class='sharp'>#define</em> GENERIC_EXECUTE_ACCESS  (1&lt;&lt;29)
<a id='L1224' name='L1224'></a>1224 <em class='sharp'>#define</em> GENERIC_WRITE_ACCESS   (1&lt;&lt;30)
<a id='L1225' name='L1225'></a>1225 <em class='sharp'>#define</em> GENERIC_READ_ACCESS   (1&lt;&lt;31)
<a id='L1226' name='L1226'></a>1226 
<a id='L1227' name='L1227'></a>1227 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1231' title='Referred from 1231 in src/vfs/smbfs/helpers/include/smb.h.'>FILE_ALL_STANDARD_ACCESS</a> 0x1F0000
<a id='L1228' name='L1228'></a>1228 
<a id='L1229' name='L1229'></a>1229 <em class='comment'>/* Mapping of access rights to UNIX perms. */</em>
<a id='L1230' name='L1230'></a>1230 <em class='sharp'>#if</em> 0                           <em class='comment'>/* Don't use all here... JRA. */</em>
<a id='L1231' name='L1231'></a>1231 <em class='sharp'>#define</em> UNIX_ACCESS_RWX (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1210' title='Defined at 1210 in src/vfs/smbfs/helpers/include/smb.h.'>FILE_ALL_ATTRIBUTES</a>|<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1227' title='Defined at 1227 in src/vfs/smbfs/helpers/include/smb.h.'>FILE_ALL_STANDARD_ACCESS</a>)
<a id='L1232' name='L1232'></a>1232 <em class='sharp'>#else</em>
<a id='L1233' name='L1233'></a>1233 <em class='sharp'>#define</em> UNIX_ACCESS_RWX (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1236' title='Defined at 1236 in src/vfs/smbfs/helpers/include/smb.h.'>UNIX_ACCESS_R</a>|<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1238' title='Defined at 1238 in src/vfs/smbfs/helpers/include/smb.h.'>UNIX_ACCESS_W</a>|<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1241' title='Defined at 1241 in src/vfs/smbfs/helpers/include/smb.h.'>UNIX_ACCESS_X</a>)
<a id='L1234' name='L1234'></a>1234 <em class='sharp'>#endif</em>
<a id='L1235' name='L1235'></a>1235 
<a id='L1236' name='L1236'></a>1236 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1233' title='Referred from 1233 in src/vfs/smbfs/helpers/include/smb.h.'>UNIX_ACCESS_R</a> (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1216' title='Defined at 1216 in src/vfs/smbfs/helpers/include/smb.h.'>READ_CONTROL_ACCESS</a>|<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1219' title='Defined at 1219 in src/vfs/smbfs/helpers/include/smb.h.'>SYNCHRONIZE_ACCESS</a>|\
<a id='L1237' name='L1237'></a>1237                         <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1207' title='Defined at 1207 in src/vfs/smbfs/helpers/include/smb.h.'>FILE_READ_ATTRIBUTES</a>|<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1203' title='Defined at 1203 in src/vfs/smbfs/helpers/include/smb.h.'>FILE_READ_EA</a>|<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1200' title='Defined at 1200 in src/vfs/smbfs/helpers/include/smb.h.'>FILE_READ_DATA</a>)
<a id='L1238' name='L1238'></a>1238 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1233' title='Referred from 1233 in src/vfs/smbfs/helpers/include/smb.h.'>UNIX_ACCESS_W</a> (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1216' title='Defined at 1216 in src/vfs/smbfs/helpers/include/smb.h.'>READ_CONTROL_ACCESS</a>|<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1219' title='Defined at 1219 in src/vfs/smbfs/helpers/include/smb.h.'>SYNCHRONIZE_ACCESS</a>|\
<a id='L1239' name='L1239'></a>1239                         <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1208' title='Defined at 1208 in src/vfs/smbfs/helpers/include/smb.h.'>FILE_WRITE_ATTRIBUTES</a>|<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1204' title='Defined at 1204 in src/vfs/smbfs/helpers/include/smb.h.'>FILE_WRITE_EA</a>|\
<a id='L1240' name='L1240'></a>1240                         <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1202' title='Defined at 1202 in src/vfs/smbfs/helpers/include/smb.h.'>FILE_APPEND_DATA</a>|<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1201' title='Defined at 1201 in src/vfs/smbfs/helpers/include/smb.h.'>FILE_WRITE_DATA</a>)
<a id='L1241' name='L1241'></a>1241 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1233' title='Referred from 1233 in src/vfs/smbfs/helpers/include/smb.h.'>UNIX_ACCESS_X</a> (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1216' title='Defined at 1216 in src/vfs/smbfs/helpers/include/smb.h.'>READ_CONTROL_ACCESS</a>|<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1219' title='Defined at 1219 in src/vfs/smbfs/helpers/include/smb.h.'>SYNCHRONIZE_ACCESS</a>|\
<a id='L1242' name='L1242'></a>1242                         <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1205' title='Defined at 1205 in src/vfs/smbfs/helpers/include/smb.h.'>FILE_EXECUTE</a>|<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1207' title='Defined at 1207 in src/vfs/smbfs/helpers/include/smb.h.'>FILE_READ_ATTRIBUTES</a>)
<a id='L1243' name='L1243'></a>1243 
<a id='L1244' name='L1244'></a>1244 <em class='sharp'>#define</em> UNIX_ACCESS_NONE (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1218' title='Defined at 1218 in src/vfs/smbfs/helpers/include/smb.h.'>WRITE_OWNER_ACCESS</a>)
<a id='L1245' name='L1245'></a>1245 
<a id='L1246' name='L1246'></a>1246 <em class='comment'>/* Flags field. */</em>
<a id='L1247' name='L1247'></a>1247 <em class='sharp'>#define</em> REQUEST_OPLOCK 2
<a id='L1248' name='L1248'></a>1248 <em class='sharp'>#define</em> REQUEST_BATCH_OPLOCK 4
<a id='L1249' name='L1249'></a>1249 <em class='sharp'>#define</em> OPEN_DIRECTORY 8
<a id='L1250' name='L1250'></a>1250 
<a id='L1251' name='L1251'></a>1251 <em class='comment'>/* ShareAccess field. */</em>
<a id='L1252' name='L1252'></a>1252 <em class='sharp'>#define</em> FILE_SHARE_NONE 0       <em class='comment'>/* Cannot be used in bitmask. */</em>
<a id='L1253' name='L1253'></a>1253 <em class='sharp'>#define</em> FILE_SHARE_READ 1
<a id='L1254' name='L1254'></a>1254 <em class='sharp'>#define</em> FILE_SHARE_WRITE 2
<a id='L1255' name='L1255'></a>1255 <em class='sharp'>#define</em> FILE_SHARE_DELETE 4
<a id='L1256' name='L1256'></a>1256 
<a id='L1257' name='L1257'></a>1257 <em class='comment'>/* FileAttributesField */</em>
<a id='L1258' name='L1258'></a>1258 <em class='sharp'>#define</em> FILE_ATTRIBUTE_READONLY <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L146' title='Defined at 146 in src/vfs/smbfs/helpers/include/smb.h.'>aRONLY</a>
<a id='L1259' name='L1259'></a>1259 <em class='sharp'>#define</em> FILE_ATTRIBUTE_HIDDEN <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L147' title='Defined at 147 in src/vfs/smbfs/helpers/include/smb.h.'>aHIDDEN</a>
<a id='L1260' name='L1260'></a>1260 <em class='sharp'>#define</em> FILE_ATTRIBUTE_SYSTEM <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L148' title='Defined at 148 in src/vfs/smbfs/helpers/include/smb.h.'>aSYSTEM</a>
<a id='L1261' name='L1261'></a>1261 <em class='sharp'>#define</em> FILE_ATTRIBUTE_DIRECTORY <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L150' title='Defined at 150 in src/vfs/smbfs/helpers/include/smb.h.'>aDIR</a>
<a id='L1262' name='L1262'></a>1262 <em class='sharp'>#define</em> FILE_ATTRIBUTE_ARCHIVE <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L151' title='Defined at 151 in src/vfs/smbfs/helpers/include/smb.h.'>aARCH</a>
<a id='L1263' name='L1263'></a>1263 <em class='sharp'>#define</em> FILE_ATTRIBUTE_NORMAL 0x80L
<a id='L1264' name='L1264'></a>1264 <em class='sharp'>#define</em> FILE_ATTRIBUTE_TEMPORARY 0x100L
<a id='L1265' name='L1265'></a>1265 <em class='sharp'>#define</em> FILE_ATTRIBUTE_COMPRESSED 0x800L
<a id='L1266' name='L1266'></a>1266 <em class='sharp'>#define</em> SAMBA_ATTRIBUTES_MASK 0x7F
<a id='L1267' name='L1267'></a>1267 
<a id='L1268' name='L1268'></a>1268 <em class='comment'>/* Flags - combined with attributes. */</em>
<a id='L1269' name='L1269'></a>1269 <em class='sharp'>#define</em> FILE_FLAG_WRITE_THROUGH    0x80000000L
<a id='L1270' name='L1270'></a>1270 <em class='sharp'>#define</em> FILE_FLAG_NO_BUFFERING     0x20000000L
<a id='L1271' name='L1271'></a>1271 <em class='sharp'>#define</em> FILE_FLAG_RANDOM_ACCESS    0x10000000L
<a id='L1272' name='L1272'></a>1272 <em class='sharp'>#define</em> FILE_FLAG_SEQUENTIAL_SCAN  0x08000000L
<a id='L1273' name='L1273'></a>1273 <em class='sharp'>#define</em> FILE_FLAG_DELETE_ON_CLOSE  0x04000000L
<a id='L1274' name='L1274'></a>1274 <em class='sharp'>#define</em> FILE_FLAG_BACKUP_SEMANTICS 0x02000000L
<a id='L1275' name='L1275'></a>1275 <em class='sharp'>#define</em> FILE_FLAG_POSIX_SEMANTICS  0x01000000L
<a id='L1276' name='L1276'></a>1276 
<a id='L1277' name='L1277'></a>1277 <em class='comment'>/* CreateDisposition field. */</em>
<a id='L1278' name='L1278'></a>1278 <em class='sharp'>#define</em> FILE_SUPERSEDE 0
<a id='L1279' name='L1279'></a>1279 <em class='sharp'>#define</em> FILE_OPEN 1
<a id='L1280' name='L1280'></a>1280 <em class='sharp'>#define</em> FILE_CREATE 2
<a id='L1281' name='L1281'></a>1281 <em class='sharp'>#define</em> FILE_OPEN_IF 3
<a id='L1282' name='L1282'></a>1282 <em class='sharp'>#define</em> FILE_OVERWRITE 4
<a id='L1283' name='L1283'></a>1283 <em class='sharp'>#define</em> FILE_OVERWRITE_IF 5
<a id='L1284' name='L1284'></a>1284 
<a id='L1285' name='L1285'></a>1285 <em class='comment'>/* CreateOptions field. */</em>
<a id='L1286' name='L1286'></a>1286 <em class='sharp'>#define</em> FILE_DIRECTORY_FILE       0x0001
<a id='L1287' name='L1287'></a>1287 <em class='sharp'>#define</em> FILE_WRITE_THROUGH        0x0002
<a id='L1288' name='L1288'></a>1288 <em class='sharp'>#define</em> FILE_SEQUENTIAL_ONLY      0x0004
<a id='L1289' name='L1289'></a>1289 <em class='sharp'>#define</em> FILE_NON_DIRECTORY_FILE   0x0040
<a id='L1290' name='L1290'></a>1290 <em class='sharp'>#define</em> FILE_NO_EA_KNOWLEDGE      0x0200
<a id='L1291' name='L1291'></a>1291 <em class='sharp'>#define</em> FILE_EIGHT_DOT_THREE_ONLY 0x0400
<a id='L1292' name='L1292'></a>1292 <em class='sharp'>#define</em> FILE_RANDOM_ACCESS        0x0800
<a id='L1293' name='L1293'></a>1293 <em class='sharp'>#define</em> FILE_DELETE_ON_CLOSE      0x1000
<a id='L1294' name='L1294'></a>1294 
<a id='L1295' name='L1295'></a>1295 <em class='comment'>/* Responses when opening a file. */</em>
<a id='L1296' name='L1296'></a>1296 <em class='sharp'>#define</em> FILE_WAS_OPENED 1
<a id='L1297' name='L1297'></a>1297 <em class='sharp'>#define</em> FILE_WAS_CREATED 2
<a id='L1298' name='L1298'></a>1298 <em class='sharp'>#define</em> FILE_WAS_OVERWRITTEN 3
<a id='L1299' name='L1299'></a>1299 
<a id='L1300' name='L1300'></a>1300 <em class='comment'>/* File type flags */</em>
<a id='L1301' name='L1301'></a>1301 <em class='sharp'>#define</em> FILE_TYPE_DISK  0
<a id='L1302' name='L1302'></a>1302 <em class='sharp'>#define</em> FILE_TYPE_BYTE_MODE_PIPE 1
<a id='L1303' name='L1303'></a>1303 <em class='sharp'>#define</em> FILE_TYPE_MESSAGE_MODE_PIPE 2
<a id='L1304' name='L1304'></a>1304 <em class='sharp'>#define</em> FILE_TYPE_PRINTER 3
<a id='L1305' name='L1305'></a>1305 <em class='sharp'>#define</em> FILE_TYPE_COMM_DEVICE 4
<a id='L1306' name='L1306'></a>1306 <em class='sharp'>#define</em> FILE_TYPE_UNKNOWN 0xFFFF
<a id='L1307' name='L1307'></a>1307 
<a id='L1308' name='L1308'></a>1308 <em class='comment'>/* Flag for NT transact rename call. */</em>
<a id='L1309' name='L1309'></a>1309 <em class='sharp'>#define</em> RENAME_REPLACE_IF_EXISTS 1
<a id='L1310' name='L1310'></a>1310 
<a id='L1311' name='L1311'></a>1311 <em class='comment'>/* Filesystem Attributes. */</em>
<a id='L1312' name='L1312'></a>1312 <em class='sharp'>#define</em> FILE_CASE_SENSITIVE_SEARCH 0x1
<a id='L1313' name='L1313'></a>1313 <em class='sharp'>#define</em> FILE_CASE_PRESERVED_NAMES 0x2
<a id='L1314' name='L1314'></a>1314 <em class='sharp'>#define</em> FILE_UNICODE_ON_DISK 0x4
<a id='L1315' name='L1315'></a>1315 <em class='sharp'>#define</em> FILE_PERSISTENT_ACLS 0x8
<a id='L1316' name='L1316'></a>1316 
<a id='L1317' name='L1317'></a>1317 <em class='comment'>/* ChangeNotify flags. */</em>
<a id='L1318' name='L1318'></a>1318 <em class='sharp'>#define</em> FILE_NOTIFY_CHANGE_FILE_NAME   0x001
<a id='L1319' name='L1319'></a>1319 <em class='sharp'>#define</em> FILE_NOTIFY_CHANGE_DIR_NAME    0x002
<a id='L1320' name='L1320'></a>1320 <em class='sharp'>#define</em> FILE_NOTIFY_CHANGE_ATTRIBUTES  0x004
<a id='L1321' name='L1321'></a>1321 <em class='sharp'>#define</em> FILE_NOTIFY_CHANGE_SIZE        0x008
<a id='L1322' name='L1322'></a>1322 <em class='sharp'>#define</em> FILE_NOTIFY_CHANGE_LAST_WRITE  0x010
<a id='L1323' name='L1323'></a>1323 <em class='sharp'>#define</em> FILE_NOTIFY_CHANGE_LAST_ACCESS 0x020
<a id='L1324' name='L1324'></a>1324 <em class='sharp'>#define</em> FILE_NOTIFY_CHANGE_CREATION    0x040
<a id='L1325' name='L1325'></a>1325 <em class='sharp'>#define</em> FILE_NOTIFY_CHANGE_EA          0x080
<a id='L1326' name='L1326'></a>1326 <em class='sharp'>#define</em> FILE_NOTIFY_CHANGE_SECURITY    0x100
<a id='L1327' name='L1327'></a>1327 
<a id='L1328' name='L1328'></a>1328 <em class='comment'>/* where to find the base of the SMB packet proper */</em>
<a id='L1329' name='L1329'></a>1329 <em class='sharp'>#define</em> <a href='../R/smb_base.html' title='Multiple referred from 5 places.'>smb_base</a>(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>) (((<strong class='reserved'>char</strong> *)(<a href='../Y/buf.html' title='Multiple used in 954 places.'>buf</a>))+4)
<a id='L1330' name='L1330'></a>1330 
<a id='L1331' name='L1331'></a>1331 
<a id='L1332' name='L1332'></a>1332 <em class='sharp'>#define</em> SMB_SUCCESS 0           <em class='comment'>/* The request was successful. */</em>
<a id='L1333' name='L1333'></a>1333 <em class='sharp'>#define</em> <a href='../R/ERRDOS.html' title='Multiple referred from 7 places.'>ERRDOS</a> 0x01             <em class='comment'>/*  Error is from the core DOS operating system set. */</em>
<a id='L1334' name='L1334'></a>1334 <em class='sharp'>#define</em> <a href='../R/ERRSRV.html' title='Multiple referred from 3 places.'>ERRSRV</a> 0x02             <em class='comment'>/* Error is generated by the server network file manager. */</em>
<a id='L1335' name='L1335'></a>1335 <em class='sharp'>#define</em> ERRHRD 0x03             <em class='comment'>/* Error is an hardware error. */</em>
<a id='L1336' name='L1336'></a>1336 <em class='sharp'>#define</em> ERRCMD 0xFF             <em class='comment'>/* Command was not in the "SMB" format. */</em>
<a id='L1337' name='L1337'></a>1337 
<a id='L1338' name='L1338'></a>1338 <em class='sharp'>#ifdef</em> <a href='../Y/HAVE_STDARG_H.html' title='Multiple used in 9 places.'>HAVE_STDARG_H</a>
<a id='L1339' name='L1339'></a>1339 <strong class='reserved'>int</strong>
<a id='L1340' name='L1340'></a>1340 <a href='../D/slprintf.html' title='Multiple defined in 2 places.'>slprintf</a> (<strong class='reserved'>char</strong> *<a href='../Y/str.html' title='Multiple used in 587 places.'>str</a>, <strong class='reserved'>int</strong> <a href='../Y/n.html' title='Multiple used in 370 places.'>n</a>, <strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/format.html' title='Multiple used in 125 places.'>format</a>, ...)
<a id='L1341' name='L1341'></a>1341 <em class='sharp'>#ifdef</em> <a href='../Y/__GNUC__.html' title='Multiple used in 4 places.'>__GNUC__</a>
<a id='L1342' name='L1342'></a>1342     <strong class='reserved'>__attribute__</strong> ((<a href='../Y/format.html' title='Multiple used in 125 places.'>format</a> (<a href='../Y/printf.html' title='Multiple used in 63 places.'>printf</a>, 3, 4)))
<a id='L1343' name='L1343'></a>1343 <em class='sharp'>#endif</em>
<a id='L1344' name='L1344'></a>1344     ;
<a id='L1345' name='L1345'></a>1345 <em class='sharp'>#else</em>
<a id='L1346' name='L1346'></a>1346 <strong class='reserved'>int</strong> <a href='../D/slprintf.html' title='Multiple defined in 2 places.'>slprintf</a> ();
<a id='L1347' name='L1347'></a>1347 <em class='sharp'>#endif</em>
<a id='L1348' name='L1348'></a>1348 
<a id='L1349' name='L1349'></a>1349 <em class='sharp'>#ifdef</em> WITH_DFS
<a id='L1350' name='L1350'></a>1350 <strong class='reserved'>void</strong> dfs_unlogin (<strong class='reserved'>void</strong>);
<a id='L1351' name='L1351'></a>1351 <strong class='reserved'>extern</strong> <strong class='reserved'>int</strong> dcelogin_atmost_once;
<a id='L1352' name='L1352'></a>1352 <em class='sharp'>#endif</em>
<a id='L1353' name='L1353'></a>1353 
<a id='L1354' name='L1354'></a>1354 <em class='sharp'>#ifndef</em> <a href='../D/MIN.html' title='Multiple defined in 2 places.'>MIN</a>
<a id='L1355' name='L1355'></a>1355 <em class='sharp'>#define</em> <a href='../R/MIN.html' title='Multiple referred from 94 places.'>MIN</a>(<a href='../Y/a.html' title='Multiple used in 340 places.'>a</a>,<a href='../Y/b.html' title='Multiple used in 443 places.'>b</a>) ((<a href='../Y/a.html' title='Multiple used in 340 places.'>a</a>)&lt;(<a href='../Y/b.html' title='Multiple used in 443 places.'>b</a>)?(<a href='../Y/a.html' title='Multiple used in 340 places.'>a</a>):(<a href='../Y/b.html' title='Multiple used in 443 places.'>b</a>))
<a id='L1356' name='L1356'></a>1356 <em class='sharp'>#endif</em>
<a id='L1357' name='L1357'></a>1357 <em class='sharp'>#ifndef</em> <a href='../D/MAX.html' title='Multiple defined in 2 places.'>MAX</a>
<a id='L1358' name='L1358'></a>1358 <em class='sharp'>#define</em> <a href='../R/MAX.html' title='Multiple referred from 119 places.'>MAX</a>(<a href='../Y/a.html' title='Multiple used in 340 places.'>a</a>,<a href='../Y/b.html' title='Multiple used in 443 places.'>b</a>) ((<a href='../Y/a.html' title='Multiple used in 340 places.'>a</a>)&gt;(<a href='../Y/b.html' title='Multiple used in 443 places.'>b</a>)?(<a href='../Y/a.html' title='Multiple used in 340 places.'>a</a>):(<a href='../Y/b.html' title='Multiple used in 443 places.'>b</a>))
<a id='L1359' name='L1359'></a>1359 <em class='sharp'>#endif</em>
<a id='L1360' name='L1360'></a>1360 
<a id='L1361' name='L1361'></a>1361 <em class='sharp'>#ifndef</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1362' title='Defined at 1362 in src/vfs/smbfs/helpers/include/smb.h.'>ABS</a>
<a id='L1362' name='L1362'></a>1362 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1361' title='Referred from 1361 in src/vfs/smbfs/helpers/include/smb.h.'>ABS</a>(<a href='../Y/a.html' title='Multiple used in 340 places.'>a</a>) ((<a href='../Y/a.html' title='Multiple used in 340 places.'>a</a>)&gt;0?(<a href='../Y/a.html' title='Multiple used in 340 places.'>a</a>):(-(<a href='../Y/a.html' title='Multiple used in 340 places.'>a</a>)))
<a id='L1363' name='L1363'></a>1363 <em class='sharp'>#endif</em>
<a id='L1364' name='L1364'></a>1364 
<a id='L1365' name='L1365'></a>1365 <em class='sharp'>#ifndef</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1366' title='Defined at 1366 in src/vfs/smbfs/helpers/include/smb.h.'>SIGNAL_CAST</a>
<a id='L1366' name='L1366'></a>1366 <em class='sharp'>#define</em> <a href='../R/SIGNAL_CAST.html' title='Multiple referred from 3 places.'>SIGNAL_CAST</a> (RETSIGTYPE (*)(<strong class='reserved'>int</strong>))
<a id='L1367' name='L1367'></a>1367 <em class='sharp'>#endif</em>
<a id='L1368' name='L1368'></a>1368 
<a id='L1369' name='L1369'></a>1369 <em class='sharp'>#ifndef</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1370' title='Defined at 1370 in src/vfs/smbfs/helpers/include/smb.h.'>SELECT_CAST</a>
<a id='L1370' name='L1370'></a>1370 <em class='sharp'>#define</em> <a href='../R/SELECT_CAST.html' title='Multiple referred from 2 places.'>SELECT_CAST</a>
<a id='L1371' name='L1371'></a>1371 <em class='sharp'>#endif</em>
<a id='L1372' name='L1372'></a>1372 
<a id='L1373' name='L1373'></a>1373 
<a id='L1374' name='L1374'></a>1374 <em class='comment'>/* Some POSIX definitions for those without */</em>
<a id='L1375' name='L1375'></a>1375 
<a id='L1376' name='L1376'></a>1376 <em class='sharp'>#ifndef</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1377' title='Defined at 1377 in src/vfs/smbfs/helpers/include/smb.h.'>S_IFDIR</a>
<a id='L1377' name='L1377'></a>1377 <em class='sharp'>#define</em> <a href='../R/S_IFDIR.html' title='Multiple referred from 22 places.'>S_IFDIR</a>         0x4000
<a id='L1378' name='L1378'></a>1378 <em class='sharp'>#endif</em>
<a id='L1379' name='L1379'></a>1379 <em class='sharp'>#ifndef</em> <a href='../D/S_ISDIR.html' title='Multiple defined in 2 places.'>S_ISDIR</a>
<a id='L1380' name='L1380'></a>1380 <em class='sharp'>#define</em> <a href='../R/S_ISDIR.html' title='Multiple referred from 86 places.'>S_ISDIR</a>(<a href='../Y/mode.html' title='Multiple used in 239 places.'>mode</a>)   ((<a href='../Y/mode.html' title='Multiple used in 239 places.'>mode</a> &amp; 0xF000) == <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1377' title='Defined at 1377 in src/vfs/smbfs/helpers/include/smb.h.'>S_IFDIR</a>)
<a id='L1381' name='L1381'></a>1381 <em class='sharp'>#endif</em>
<a id='L1382' name='L1382'></a>1382 <em class='sharp'>#ifndef</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1383' title='Defined at 1383 in src/vfs/smbfs/helpers/include/smb.h.'>S_IRWXU</a>
<a id='L1383' name='L1383'></a>1383 <em class='sharp'>#define</em> <a href='../R/S_IRWXU.html' title='Multiple referred from 5 places.'>S_IRWXU</a> 00700           <em class='comment'>/* read, write, execute: owner */</em>
<a id='L1384' name='L1384'></a>1384 <em class='sharp'>#endif</em>
<a id='L1385' name='L1385'></a>1385 <em class='sharp'>#ifndef</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1386' title='Defined at 1386 in src/vfs/smbfs/helpers/include/smb.h.'>S_IRUSR</a>
<a id='L1386' name='L1386'></a>1386 <em class='sharp'>#define</em> <a href='../R/S_IRUSR.html' title='Multiple referred from 20 places.'>S_IRUSR</a> 00400           <em class='comment'>/* read permission: owner */</em>
<a id='L1387' name='L1387'></a>1387 <em class='sharp'>#endif</em>
<a id='L1388' name='L1388'></a>1388 <em class='sharp'>#ifndef</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1389' title='Defined at 1389 in src/vfs/smbfs/helpers/include/smb.h.'>S_IWUSR</a>
<a id='L1389' name='L1389'></a>1389 <em class='sharp'>#define</em> <a href='../R/S_IWUSR.html' title='Multiple referred from 16 places.'>S_IWUSR</a> 00200           <em class='comment'>/* write permission: owner */</em>
<a id='L1390' name='L1390'></a>1390 <em class='sharp'>#endif</em>
<a id='L1391' name='L1391'></a>1391 <em class='sharp'>#ifndef</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1392' title='Defined at 1392 in src/vfs/smbfs/helpers/include/smb.h.'>S_IXUSR</a>
<a id='L1392' name='L1392'></a>1392 <em class='sharp'>#define</em> <a href='../R/S_IXUSR.html' title='Multiple referred from 12 places.'>S_IXUSR</a> 00100           <em class='comment'>/* execute permission: owner */</em>
<a id='L1393' name='L1393'></a>1393 <em class='sharp'>#endif</em>
<a id='L1394' name='L1394'></a>1394 <em class='sharp'>#ifndef</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1395' title='Defined at 1395 in src/vfs/smbfs/helpers/include/smb.h.'>S_IRWXG</a>
<a id='L1395' name='L1395'></a>1395 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1394' title='Referred from 1394 in src/vfs/smbfs/helpers/include/smb.h.'>S_IRWXG</a> 00070           <em class='comment'>/* read, write, execute: group */</em>
<a id='L1396' name='L1396'></a>1396 <em class='sharp'>#endif</em>
<a id='L1397' name='L1397'></a>1397 <em class='sharp'>#ifndef</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1398' title='Defined at 1398 in src/vfs/smbfs/helpers/include/smb.h.'>S_IRGRP</a>
<a id='L1398' name='L1398'></a>1398 <em class='sharp'>#define</em> <a href='../R/S_IRGRP.html' title='Multiple referred from 16 places.'>S_IRGRP</a> 00040           <em class='comment'>/* read permission: group */</em>
<a id='L1399' name='L1399'></a>1399 <em class='sharp'>#endif</em>
<a id='L1400' name='L1400'></a>1400 <em class='sharp'>#ifndef</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1401' title='Defined at 1401 in src/vfs/smbfs/helpers/include/smb.h.'>S_IWGRP</a>
<a id='L1401' name='L1401'></a>1401 <em class='sharp'>#define</em> <a href='../R/S_IWGRP.html' title='Multiple referred from 7 places.'>S_IWGRP</a> 00020           <em class='comment'>/* write permission: group */</em>
<a id='L1402' name='L1402'></a>1402 <em class='sharp'>#endif</em>
<a id='L1403' name='L1403'></a>1403 <em class='sharp'>#ifndef</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1404' title='Defined at 1404 in src/vfs/smbfs/helpers/include/smb.h.'>S_IXGRP</a>
<a id='L1404' name='L1404'></a>1404 <em class='sharp'>#define</em> <a href='../R/S_IXGRP.html' title='Multiple referred from 12 places.'>S_IXGRP</a> 00010           <em class='comment'>/* execute permission: group */</em>
<a id='L1405' name='L1405'></a>1405 <em class='sharp'>#endif</em>
<a id='L1406' name='L1406'></a>1406 <em class='sharp'>#ifndef</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1407' title='Defined at 1407 in src/vfs/smbfs/helpers/include/smb.h.'>S_IRWXO</a>
<a id='L1407' name='L1407'></a>1407 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1406' title='Referred from 1406 in src/vfs/smbfs/helpers/include/smb.h.'>S_IRWXO</a> 00007           <em class='comment'>/* read, write, execute: other */</em>
<a id='L1408' name='L1408'></a>1408 <em class='sharp'>#endif</em>
<a id='L1409' name='L1409'></a>1409 <em class='sharp'>#ifndef</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1410' title='Defined at 1410 in src/vfs/smbfs/helpers/include/smb.h.'>S_IROTH</a>
<a id='L1410' name='L1410'></a>1410 <em class='sharp'>#define</em> <a href='../R/S_IROTH.html' title='Multiple referred from 16 places.'>S_IROTH</a> 00004           <em class='comment'>/* read permission: other */</em>
<a id='L1411' name='L1411'></a>1411 <em class='sharp'>#endif</em>
<a id='L1412' name='L1412'></a>1412 <em class='sharp'>#ifndef</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1413' title='Defined at 1413 in src/vfs/smbfs/helpers/include/smb.h.'>S_IWOTH</a>
<a id='L1413' name='L1413'></a>1413 <em class='sharp'>#define</em> <a href='../R/S_IWOTH.html' title='Multiple referred from 7 places.'>S_IWOTH</a> 00002           <em class='comment'>/* write permission: other */</em>
<a id='L1414' name='L1414'></a>1414 <em class='sharp'>#endif</em>
<a id='L1415' name='L1415'></a>1415 <em class='sharp'>#ifndef</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1416' title='Defined at 1416 in src/vfs/smbfs/helpers/include/smb.h.'>S_IXOTH</a>
<a id='L1416' name='L1416'></a>1416 <em class='sharp'>#define</em> <a href='../R/S_IXOTH.html' title='Multiple referred from 12 places.'>S_IXOTH</a> 00001           <em class='comment'>/* execute permission: other */</em>
<a id='L1417' name='L1417'></a>1417 <em class='sharp'>#endif</em>
<a id='L1418' name='L1418'></a>1418 
<a id='L1419' name='L1419'></a>1419 
<a id='L1420' name='L1420'></a>1420 <em class='comment'>/* these are used in NetServerEnum to choose what to receive */</em>
<a id='L1421' name='L1421'></a>1421 <em class='sharp'>#define</em> SV_TYPE_WORKSTATION         0x00000001
<a id='L1422' name='L1422'></a>1422 <em class='sharp'>#define</em> SV_TYPE_SERVER              0x00000002
<a id='L1423' name='L1423'></a>1423 <em class='sharp'>#define</em> SV_TYPE_SQLSERVER           0x00000004
<a id='L1424' name='L1424'></a>1424 <em class='sharp'>#define</em> SV_TYPE_DOMAIN_CTRL         0x00000008
<a id='L1425' name='L1425'></a>1425 <em class='sharp'>#define</em> SV_TYPE_DOMAIN_BAKCTRL      0x00000010
<a id='L1426' name='L1426'></a>1426 <em class='sharp'>#define</em> SV_TYPE_TIME_SOURCE         0x00000020
<a id='L1427' name='L1427'></a>1427 <em class='sharp'>#define</em> SV_TYPE_AFP                 0x00000040
<a id='L1428' name='L1428'></a>1428 <em class='sharp'>#define</em> SV_TYPE_NOVELL              0x00000080
<a id='L1429' name='L1429'></a>1429 <em class='sharp'>#define</em> SV_TYPE_DOMAIN_MEMBER       0x00000100
<a id='L1430' name='L1430'></a>1430 <em class='sharp'>#define</em> SV_TYPE_PRINTQ_SERVER       0x00000200
<a id='L1431' name='L1431'></a>1431 <em class='sharp'>#define</em> SV_TYPE_DIALIN_SERVER       0x00000400
<a id='L1432' name='L1432'></a>1432 <em class='sharp'>#define</em> SV_TYPE_SERVER_UNIX         0x00000800
<a id='L1433' name='L1433'></a>1433 <em class='sharp'>#define</em> SV_TYPE_NT                  0x00001000
<a id='L1434' name='L1434'></a>1434 <em class='sharp'>#define</em> SV_TYPE_WFW                 0x00002000
<a id='L1435' name='L1435'></a>1435 <em class='sharp'>#define</em> SV_TYPE_SERVER_MFPN         0x00004000
<a id='L1436' name='L1436'></a>1436 <em class='sharp'>#define</em> SV_TYPE_SERVER_NT           0x00008000
<a id='L1437' name='L1437'></a>1437 <em class='sharp'>#define</em> SV_TYPE_POTENTIAL_BROWSER   0x00010000
<a id='L1438' name='L1438'></a>1438 <em class='sharp'>#define</em> SV_TYPE_BACKUP_BROWSER      0x00020000
<a id='L1439' name='L1439'></a>1439 <em class='sharp'>#define</em> SV_TYPE_MASTER_BROWSER      0x00040000
<a id='L1440' name='L1440'></a>1440 <em class='sharp'>#define</em> SV_TYPE_DOMAIN_MASTER       0x00080000
<a id='L1441' name='L1441'></a>1441 <em class='sharp'>#define</em> SV_TYPE_SERVER_OSF          0x00100000
<a id='L1442' name='L1442'></a>1442 <em class='sharp'>#define</em> SV_TYPE_SERVER_VMS          0x00200000
<a id='L1443' name='L1443'></a>1443 <em class='sharp'>#define</em> SV_TYPE_WIN95_PLUS          0x00400000
<a id='L1444' name='L1444'></a>1444 <em class='sharp'>#define</em> SV_TYPE_ALTERNATE_XPORT     0x20000000
<a id='L1445' name='L1445'></a>1445 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L692' title='Referred from 692 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>SV_TYPE_LOCAL_LIST_ONLY</a>     0x40000000
<a id='L1446' name='L1446'></a>1446 <em class='sharp'>#define</em> SV_TYPE_DOMAIN_ENUM         0x80000000
<a id='L1447' name='L1447'></a>1447 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--smbfs.c.html#L847' title='Referred from 847 in src/vfs/smbfs/smbfs.c.'>SV_TYPE_ALL</a>                 0xFFFFFFFF
<a id='L1448' name='L1448'></a>1448 
<a id='L1449' name='L1449'></a>1449 <em class='comment'>/* what server type are we currently  - JHT Says we ARE 4.20 */</em>
<a id='L1450' name='L1450'></a>1450 <em class='comment'>/* this was set by JHT in liaison with Jeremy Allison early 1997 */</em>
<a id='L1451' name='L1451'></a>1451 <em class='comment'>/* setting to 4.20 at same time as announcing ourselves as NT Server */</em>
<a id='L1452' name='L1452'></a>1452 <em class='comment'>/* History: */</em>
<a id='L1453' name='L1453'></a>1453 <em class='comment'>/* Version 4.0 - never made public */</em>
<a id='L1454' name='L1454'></a>1454 <em class='comment'>/* Version 4.10 - New to 1.9.16p2, lost in space 1.9.16p3 to 1.9.16p9 */</em>
<a id='L1455' name='L1455'></a>1455 <em class='comment'>/*              - Reappeared in 1.9.16p11 with fixed smbd services */</em>
<a id='L1456' name='L1456'></a>1456 <em class='comment'>/* Version 4.20 - To indicate that nmbd and browsing now works better */</em>
<a id='L1457' name='L1457'></a>1457 
<a id='L1458' name='L1458'></a>1458 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--param--loadparm.c.html#L940' title='Referred from 940 in src/vfs/smbfs/helpers/param/loadparm.c.'>DEFAULT_MAJOR_VERSION</a> 0x04
<a id='L1459' name='L1459'></a>1459 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--param--loadparm.c.html#L940' title='Referred from 940 in src/vfs/smbfs/helpers/param/loadparm.c.'>DEFAULT_MINOR_VERSION</a> 0x02
<a id='L1460' name='L1460'></a>1460 
<a id='L1461' name='L1461'></a>1461 <em class='comment'>/* Browser Election Values */</em>
<a id='L1462' name='L1462'></a>1462 <em class='sharp'>#define</em> BROWSER_ELECTION_VERSION        0x010f
<a id='L1463' name='L1463'></a>1463 <em class='sharp'>#define</em> BROWSER_CONSTANT        0xaa55
<a id='L1464' name='L1464'></a>1464 
<a id='L1465' name='L1465'></a>1465 <em class='comment'>/* NT Flags2 bits - cifs6.txt section 3.1.2 */</em>
<a id='L1466' name='L1466'></a>1466 
<a id='L1467' name='L1467'></a>1467 <em class='sharp'>#define</em> FLAGS2_LONG_PATH_COMPONENTS   0x0001
<a id='L1468' name='L1468'></a>1468 <em class='sharp'>#define</em> FLAGS2_EXTENDED_ATTRIBUTES    0x0002
<a id='L1469' name='L1469'></a>1469 <em class='sharp'>#define</em> FLAGS2_DFS_PATHNAMES          0x1000
<a id='L1470' name='L1470'></a>1470 <em class='sharp'>#define</em> FLAGS2_READ_PERMIT_NO_EXECUTE 0x2000
<a id='L1471' name='L1471'></a>1471 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L2635' title='Referred from 2635 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>FLAGS2_32_BIT_ERROR_CODES</a>     0x4000
<a id='L1472' name='L1472'></a>1472 <em class='sharp'>#define</em> FLAGS2_UNICODE_STRINGS        0x8000
<a id='L1473' name='L1473'></a>1473 
<a id='L1474' name='L1474'></a>1474 <em class='comment'>/* Capabilities.  see ftp.microsoft.com/developr/drg/cifs/cifs/cifs4.txt */</em>
<a id='L1475' name='L1475'></a>1475 
<a id='L1476' name='L1476'></a>1476 <em class='sharp'>#define</em> CAP_RAW_MODE         0x0001
<a id='L1477' name='L1477'></a>1477 <em class='sharp'>#define</em> CAP_MPX_MODE         0x0002
<a id='L1478' name='L1478'></a>1478 <em class='sharp'>#define</em> CAP_UNICODE          0x0004
<a id='L1479' name='L1479'></a>1479 <em class='sharp'>#define</em> CAP_LARGE_FILES      0x0008
<a id='L1480' name='L1480'></a>1480 <em class='sharp'>#define</em> CAP_NT_SMBS          0x0010
<a id='L1481' name='L1481'></a>1481 <em class='sharp'>#define</em> CAP_RPC_REMOTE_APIS  0x0020
<a id='L1482' name='L1482'></a>1482 <em class='sharp'>#define</em> CAP_STATUS32         0x0040
<a id='L1483' name='L1483'></a>1483 <em class='sharp'>#define</em> CAP_LEVEL_II_OPLOCKS 0x0080
<a id='L1484' name='L1484'></a>1484 <em class='sharp'>#define</em> CAP_LOCK_AND_READ    0x0100
<a id='L1485' name='L1485'></a>1485 <em class='sharp'>#define</em> CAP_NT_FIND          0x0200
<a id='L1486' name='L1486'></a>1486 <em class='sharp'>#define</em> CAP_DFS              0x1000
<a id='L1487' name='L1487'></a>1487 <em class='sharp'>#define</em> CAP_LARGE_READX      0x4000
<a id='L1488' name='L1488'></a>1488 
<a id='L1489' name='L1489'></a>1489 <em class='comment'>/* protocol types. It assumes that higher protocols include lower protocols</em>
<a id='L1490' name='L1490'></a>1490 <em class='comment'>   as subsets */</em>
<a id='L1491' name='L1491'></a>1491 <strong class='reserved'>enum</strong> protocol_types
<a id='L1492' name='L1492'></a>1492 <em class='brace'>{</em> PROTOCOL_NONE, <a href='../R/PROTOCOL_CORE.html' title='Multiple referred from 5 places.'>PROTOCOL_CORE</a>, <a href='../R/PROTOCOL_COREPLUS.html' title='Multiple referred from 6 places.'>PROTOCOL_COREPLUS</a>, <a href='../R/PROTOCOL_LANMAN1.html' title='Multiple referred from 6 places.'>PROTOCOL_LANMAN1</a>, <a href='../R/PROTOCOL_LANMAN2.html' title='Multiple referred from 4 places.'>PROTOCOL_LANMAN2</a>,
<a id='L1493' name='L1493'></a>1493     <a href='../R/PROTOCOL_NT1.html' title='Multiple referred from 12 places.'>PROTOCOL_NT1</a>
<a id='L1494' name='L1494'></a>1494 <em class='brace'>}</em>;
<a id='L1495' name='L1495'></a>1495 
<a id='L1496' name='L1496'></a>1496 <em class='comment'>/* security levels */</em>
<a id='L1497' name='L1497'></a>1497 <strong class='reserved'>enum</strong> security_types
<a id='L1498' name='L1498'></a>1498 <em class='brace'>{</em> <a href='../S/src--vfs--smbfs--helpers--param--loadparm.c.html#L470' title='Referred from 470 in src/vfs/smbfs/helpers/param/loadparm.c.'>SEC_SHARE</a>, <a href='../R/SEC_USER.html' title='Multiple referred from 2 places.'>SEC_USER</a>, <a href='../S/src--vfs--smbfs--helpers--param--loadparm.c.html#L471' title='Referred from 471 in src/vfs/smbfs/helpers/param/loadparm.c.'>SEC_SERVER</a>, <a href='../S/src--vfs--smbfs--helpers--param--loadparm.c.html#L471' title='Referred from 471 in src/vfs/smbfs/helpers/param/loadparm.c.'>SEC_DOMAIN</a> <em class='brace'>}</em>;
<a id='L1499' name='L1499'></a>1499 
<a id='L1500' name='L1500'></a>1500 <em class='comment'>/* printing types */</em>
<a id='L1501' name='L1501'></a>1501 <strong class='reserved'>enum</strong> printing_types
<a id='L1502' name='L1502'></a>1502 <em class='brace'>{</em> <a href='../R/PRINT_BSD.html' title='Multiple referred from 2 places.'>PRINT_BSD</a>, <a href='../R/PRINT_SYSV.html' title='Multiple referred from 2 places.'>PRINT_SYSV</a>, <a href='../R/PRINT_AIX.html' title='Multiple referred from 2 places.'>PRINT_AIX</a>, <a href='../R/PRINT_HPUX.html' title='Multiple referred from 2 places.'>PRINT_HPUX</a>,
<a id='L1503' name='L1503'></a>1503     <a href='../R/PRINT_QNX.html' title='Multiple referred from 2 places.'>PRINT_QNX</a>, <a href='../S/src--vfs--smbfs--helpers--param--loadparm.c.html#L477' title='Referred from 477 in src/vfs/smbfs/helpers/param/loadparm.c.'>PRINT_PLP</a>, <a href='../S/src--vfs--smbfs--helpers--param--loadparm.c.html#L478' title='Referred from 478 in src/vfs/smbfs/helpers/param/loadparm.c.'>PRINT_LPRNG</a>, <a href='../S/src--vfs--smbfs--helpers--param--loadparm.c.html#L478' title='Referred from 478 in src/vfs/smbfs/helpers/param/loadparm.c.'>PRINT_SOFTQ</a>
<a id='L1504' name='L1504'></a>1504 <em class='brace'>}</em>;
<a id='L1505' name='L1505'></a>1505 
<a id='L1506' name='L1506'></a>1506 <em class='comment'>/* Remote architectures we know about. */</em>
<a id='L1507' name='L1507'></a>1507 <strong class='reserved'>enum</strong> <a href='../R/remote_arch_types.html' title='Multiple referred from 5 places.'>remote_arch_types</a>
<a id='L1508' name='L1508'></a>1508 <em class='brace'>{</em> <a href='../R/RA_UNKNOWN.html' title='Multiple referred from 2 places.'>RA_UNKNOWN</a>, <a href='../S/src--vfs--smbfs--helpers--lib--util.c.html#L2801' title='Referred from 2801 in src/vfs/smbfs/helpers/lib/util.c.'>RA_WFWG</a>, <a href='../S/src--vfs--smbfs--helpers--lib--util.c.html#L2804' title='Referred from 2804 in src/vfs/smbfs/helpers/lib/util.c.'>RA_OS2</a>, <a href='../S/src--vfs--smbfs--helpers--lib--util.c.html#L2807' title='Referred from 2807 in src/vfs/smbfs/helpers/lib/util.c.'>RA_WIN95</a>, <a href='../S/src--vfs--smbfs--helpers--lib--util.c.html#L2810' title='Referred from 2810 in src/vfs/smbfs/helpers/lib/util.c.'>RA_WINNT</a>, <a href='../S/src--vfs--smbfs--helpers--lib--util.c.html#L2813' title='Referred from 2813 in src/vfs/smbfs/helpers/lib/util.c.'>RA_SAMBA</a> <em class='brace'>}</em>;
<a id='L1509' name='L1509'></a>1509 
<a id='L1510' name='L1510'></a>1510 <em class='comment'>/* case handling */</em>
<a id='L1511' name='L1511'></a>1511 <strong class='reserved'>enum</strong> case_handling
<a id='L1512' name='L1512'></a>1512 <em class='brace'>{</em> <a href='../R/CASE_LOWER.html' title='Multiple referred from 3 places.'>CASE_LOWER</a>, <a href='../R/CASE_UPPER.html' title='Multiple referred from 3 places.'>CASE_UPPER</a> <em class='brace'>}</em>;
<a id='L1513' name='L1513'></a>1513 
<a id='L1514' name='L1514'></a>1514 <em class='sharp'>#ifdef</em> <a href='../Y/WITH_SSL.html' title='Multiple used in 16 places.'>WITH_SSL</a>
<a id='L1515' name='L1515'></a>1515 <em class='comment'>/* SSL version options */</em>
<a id='L1516' name='L1516'></a>1516 <strong class='reserved'>enum</strong> ssl_version_enum
<a id='L1517' name='L1517'></a>1517 <em class='brace'>{</em> <a href='../S/src--vfs--smbfs--helpers--param--loadparm.c.html#L538' title='Referred from 538 in src/vfs/smbfs/helpers/param/loadparm.c.'>SMB_SSL_V2</a>, <a href='../S/src--vfs--smbfs--helpers--param--loadparm.c.html#L538' title='Referred from 538 in src/vfs/smbfs/helpers/param/loadparm.c.'>SMB_SSL_V3</a>, <a href='../R/SMB_SSL_V23.html' title='Multiple referred from 2 places.'>SMB_SSL_V23</a>, <a href='../S/src--vfs--smbfs--helpers--param--loadparm.c.html#L539' title='Referred from 539 in src/vfs/smbfs/helpers/param/loadparm.c.'>SMB_SSL_TLS1</a> <em class='brace'>}</em>;
<a id='L1518' name='L1518'></a>1518 <em class='sharp'>#endif</em> <em class='comment'>/* WITH_SSL */</em>
<a id='L1519' name='L1519'></a>1519 
<a id='L1520' name='L1520'></a>1520 <em class='comment'>/* Macros to get at offsets within smb_lkrng and smb_unlkrng</em>
<a id='L1521' name='L1521'></a>1521 <em class='comment'>   structures. We cannot define these as actual structures</em>
<a id='L1522' name='L1522'></a>1522 <em class='comment'>   due to possible differences in structure packing</em>
<a id='L1523' name='L1523'></a>1523 <em class='comment'>   on different machines/compilers. */</em>
<a id='L1524' name='L1524'></a>1524 
<a id='L1525' name='L1525'></a>1525 <em class='sharp'>#define</em> SMB_LPID_OFFSET(<a href='../Y/indx.html' title='Multiple used in 18 places.'>indx</a>) (10 * (<a href='../Y/indx.html' title='Multiple used in 18 places.'>indx</a>))
<a id='L1526' name='L1526'></a>1526 <em class='sharp'>#define</em> SMB_LKOFF_OFFSET(<a href='../Y/indx.html' title='Multiple used in 18 places.'>indx</a>) ( 2 + (10 * (<a href='../Y/indx.html' title='Multiple used in 18 places.'>indx</a>)))
<a id='L1527' name='L1527'></a>1527 <em class='sharp'>#define</em> SMB_LKLEN_OFFSET(<a href='../Y/indx.html' title='Multiple used in 18 places.'>indx</a>) ( 6 + (10 * (<a href='../Y/indx.html' title='Multiple used in 18 places.'>indx</a>)))
<a id='L1528' name='L1528'></a>1528 <em class='sharp'>#define</em> SMB_LARGE_LKOFF_OFFSET_HIGH(<a href='../Y/indx.html' title='Multiple used in 18 places.'>indx</a>) (4 + (20 * (<a href='../Y/indx.html' title='Multiple used in 18 places.'>indx</a>)))
<a id='L1529' name='L1529'></a>1529 <em class='sharp'>#define</em> SMB_LARGE_LKOFF_OFFSET_LOW(<a href='../Y/indx.html' title='Multiple used in 18 places.'>indx</a>) (8 + (20 * (<a href='../Y/indx.html' title='Multiple used in 18 places.'>indx</a>)))
<a id='L1530' name='L1530'></a>1530 <em class='sharp'>#define</em> SMB_LARGE_LKLEN_OFFSET_HIGH(<a href='../Y/indx.html' title='Multiple used in 18 places.'>indx</a>) (12 + (20 * (<a href='../Y/indx.html' title='Multiple used in 18 places.'>indx</a>)))
<a id='L1531' name='L1531'></a>1531 <em class='sharp'>#define</em> SMB_LARGE_LKLEN_OFFSET_LOW(<a href='../Y/indx.html' title='Multiple used in 18 places.'>indx</a>) (16 + (20 * (<a href='../Y/indx.html' title='Multiple used in 18 places.'>indx</a>)))
<a id='L1532' name='L1532'></a>1532 
<a id='L1533' name='L1533'></a>1533 <em class='comment'>/* Macro to cache an error in a write_bmpx_struct */</em>
<a id='L1534' name='L1534'></a>1534 <em class='sharp'>#define</em> CACHE_ERROR(<a href='../Y/w.html' title='Multiple used in 1375 places.'>w</a>,<a href='../Y/c.html' title='Multiple used in 1020 places.'>c</a>,<a href='../Y/e.html' title='Multiple used in 194 places.'>e</a>) ((<a href='../Y/w.html' title='Multiple used in 1375 places.'>w</a>)-&gt;<a href='../Y/wr_errclass.html' title='Multiple used in 2 places.'>wr_errclass</a> = (<a href='../Y/c.html' title='Multiple used in 1020 places.'>c</a>), (<a href='../Y/w.html' title='Multiple used in 1375 places.'>w</a>)-&gt;<a href='../Y/wr_error.html' title='Multiple used in 2 places.'>wr_error</a> = (<a href='../Y/e.html' title='Multiple used in 194 places.'>e</a>), \
<a id='L1535' name='L1535'></a>1535                             <a href='../Y/w.html' title='Multiple used in 1375 places.'>w</a>-&gt;<a href='../Y/wr_discard.html' title='Multiple used in 3 places.'>wr_discard</a> = <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L17' title='Defined at 17 in src/vfs/smbfs/helpers/include/smb.h.'>True</a>, -1)
<a id='L1536' name='L1536'></a>1536 <em class='comment'>/* Macro to test if an error has been cached for this fnum */</em>
<a id='L1537' name='L1537'></a>1537 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L915' title='Referred from 915 in src/vfs/smbfs/helpers/include/smb.h.'>HAS_CACHED_ERROR</a>(<a href='../Y/fsp.html' title='Multiple used in 46 places.'>fsp</a>) ((<a href='../Y/fsp.html' title='Multiple used in 46 places.'>fsp</a>)-&gt;<a href='../Y/open.html' title='Multiple used in 47 places.'>open</a> &amp;&amp; (<a href='../Y/fsp.html' title='Multiple used in 46 places.'>fsp</a>)-&gt;<a href='../Y/wbmpx_ptr.html' title='Multiple used in 3 places.'>wbmpx_ptr</a> &amp;&amp; \
<a id='L1538' name='L1538'></a>1538                                 (<a href='../Y/fsp.html' title='Multiple used in 46 places.'>fsp</a>)-&gt;<a href='../Y/wbmpx_ptr.html' title='Multiple used in 3 places.'>wbmpx_ptr</a>-&gt;<a href='../Y/wr_discard.html' title='Multiple used in 3 places.'>wr_discard</a>)
<a id='L1539' name='L1539'></a>1539 <em class='comment'>/* Macro to turn the cached error into an error packet */</em>
<a id='L1540' name='L1540'></a>1540 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L916' title='Referred from 916 in src/vfs/smbfs/helpers/include/smb.h.'>CACHED_ERROR</a>(<a href='../Y/fsp.html' title='Multiple used in 46 places.'>fsp</a>) cached_error_packet(<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>,<a href='../Y/outbuf.html' title='Multiple used in 291 places.'>outbuf</a>,<a href='../Y/fsp.html' title='Multiple used in 46 places.'>fsp</a>,<a href='../Y/__LINE__.html' title='Multiple used in 8 places.'>__LINE__</a>)
<a id='L1541' name='L1541'></a>1541 
<a id='L1542' name='L1542'></a>1542 <em class='comment'>/* these are the datagram types */</em>
<a id='L1543' name='L1543'></a>1543 <em class='sharp'>#define</em> DGRAM_DIRECT_UNIQUE 0x10
<a id='L1544' name='L1544'></a>1544 
<a id='L1545' name='L1545'></a>1545 <em class='sharp'>#define</em> <a href='../R/ERROR.html' title='Multiple referred from 6 places.'>ERROR</a>(<a href='../Y/class.html' title='Multiple used in 159 places.'>class</a>,<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) error_packet(<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>,<a href='../Y/outbuf.html' title='Multiple used in 291 places.'>outbuf</a>,<a href='../Y/class.html' title='Multiple used in 159 places.'>class</a>,<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>,<a href='../Y/__LINE__.html' title='Multiple used in 8 places.'>__LINE__</a>)
<a id='L1546' name='L1546'></a>1546 
<a id='L1547' name='L1547'></a>1547 <em class='comment'>/* this is how errors are generated */</em>
<a id='L1548' name='L1548'></a>1548 <em class='sharp'>#define</em> UNIXERROR(defclass,deferror) unix_error_packet(<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>,<a href='../Y/outbuf.html' title='Multiple used in 291 places.'>outbuf</a>,defclass,deferror,<a href='../Y/__LINE__.html' title='Multiple used in 8 places.'>__LINE__</a>)
<a id='L1549' name='L1549'></a>1549 
<a id='L1550' name='L1550'></a>1550 <em class='sharp'>#define</em> SMB_ROUNDUP(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>,<a href='../Y/g.html' title='Multiple used in 519 places.'>g</a>) (((<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>)+((<a href='../Y/g.html' title='Multiple used in 519 places.'>g</a>)-1))&amp;~((<a href='../Y/g.html' title='Multiple used in 519 places.'>g</a>)-1))
<a id='L1551' name='L1551'></a>1551 
<a id='L1552' name='L1552'></a>1552 <em class='comment'>/*</em>
<a id='L1553' name='L1553'></a>1553 <em class='comment'> * Global value meaing that the smb_uid field should be</em>
<a id='L1554' name='L1554'></a>1554 <em class='comment'> * ingored (in share level security and protocol level == CORE)</em>
<a id='L1555' name='L1555'></a>1555 <em class='comment'> */</em>
<a id='L1556' name='L1556'></a>1556 
<a id='L1557' name='L1557'></a>1557 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--libsmb--clientgen.c.html#L2572' title='Referred from 2572 in src/vfs/smbfs/helpers/libsmb/clientgen.c.'>UID_FIELD_INVALID</a> 0
<a id='L1558' name='L1558'></a>1558 <em class='sharp'>#define</em> VUID_OFFSET 100         <em class='comment'>/* Amount to bias returned vuid numbers */</em>
<a id='L1559' name='L1559'></a>1559 
<a id='L1560' name='L1560'></a>1560 <em class='comment'>/* Defines needed for multi-codepage support. */</em>
<a id='L1561' name='L1561'></a>1561 <em class='sharp'>#define</em> <a href='../R/MSDOS_LATIN_1_CODEPAGE.html' title='Multiple referred from 2 places.'>MSDOS_LATIN_1_CODEPAGE</a> 850
<a id='L1562' name='L1562'></a>1562 <em class='sharp'>#define</em> <a href='../R/KANJI_CODEPAGE.html' title='Multiple referred from 10 places.'>KANJI_CODEPAGE</a> 932
<a id='L1563' name='L1563'></a>1563 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--lib--kanji.c.html#L1461' title='Referred from 1461 in src/vfs/smbfs/helpers/lib/kanji.c.'>HANGUL_CODEPAGE</a> 949
<a id='L1564' name='L1564'></a>1564 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--lib--kanji.c.html#L1470' title='Referred from 1470 in src/vfs/smbfs/helpers/lib/kanji.c.'>BIG5_CODEPAGE</a> 950
<a id='L1565' name='L1565'></a>1565 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--lib--kanji.c.html#L1479' title='Referred from 1479 in src/vfs/smbfs/helpers/lib/kanji.c.'>SIMPLIFIED_CHINESE_CODEPAGE</a> 936
<a id='L1566' name='L1566'></a>1566 
<a id='L1567' name='L1567'></a>1567 <em class='sharp'>#ifdef</em> <a href='../S/src--vfs--smbfs--helpers--param--loadparm.c.html#L70' title='Defined at 70 in src/vfs/smbfs/helpers/param/loadparm.c.'>KANJI</a>
<a id='L1568' name='L1568'></a>1568 <em class='comment'>/* </em>
<a id='L1569' name='L1569'></a>1569 <em class='comment'> * Default client code page - Japanese </em>
<a id='L1570' name='L1570'></a>1570 <em class='comment'> */</em>
<a id='L1571' name='L1571'></a>1571 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--param--loadparm.c.html#L998' title='Referred from 998 in src/vfs/smbfs/helpers/param/loadparm.c.'>DEFAULT_CLIENT_CODE_PAGE</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1562' title='Defined at 1562 in src/vfs/smbfs/helpers/include/smb.h.'>KANJI_CODEPAGE</a>
<a id='L1572' name='L1572'></a>1572 <em class='sharp'>#else</em> <em class='comment'>/* KANJI */</em>
<a id='L1573' name='L1573'></a>1573 <em class='comment'>/* </em>
<a id='L1574' name='L1574'></a>1574 <em class='comment'> * Default client code page - 850 - Western European </em>
<a id='L1575' name='L1575'></a>1575 <em class='comment'> */</em>
<a id='L1576' name='L1576'></a>1576 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--param--loadparm.c.html#L998' title='Referred from 998 in src/vfs/smbfs/helpers/param/loadparm.c.'>DEFAULT_CLIENT_CODE_PAGE</a> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1561' title='Defined at 1561 in src/vfs/smbfs/helpers/include/smb.h.'>MSDOS_LATIN_1_CODEPAGE</a>
<a id='L1577' name='L1577'></a>1577 <em class='sharp'>#endif</em> <em class='comment'>/* KANJI */</em>
<a id='L1578' name='L1578'></a>1578 
<a id='L1579' name='L1579'></a>1579 <em class='comment'>/* </em>
<a id='L1580' name='L1580'></a>1580 <em class='comment'> * Size of buffer to use when moving files across filesystems. </em>
<a id='L1581' name='L1581'></a>1581 <em class='comment'> */</em>
<a id='L1582' name='L1582'></a>1582 <em class='sharp'>#define</em> COPYBUF_SIZE (8*1024)
<a id='L1583' name='L1583'></a>1583 
<a id='L1584' name='L1584'></a>1584 <em class='comment'>/* </em>
<a id='L1585' name='L1585'></a>1585 <em class='comment'> * Integers used to override error codes. </em>
<a id='L1586' name='L1586'></a>1586 <em class='comment'> */</em>
<a id='L1587' name='L1587'></a>1587 <strong class='reserved'>extern</strong> <strong class='reserved'>int</strong> unix_ERR_class;
<a id='L1588' name='L1588'></a>1588 <strong class='reserved'>extern</strong> <strong class='reserved'>int</strong> unix_ERR_code;
<a id='L1589' name='L1589'></a>1589 
<a id='L1590' name='L1590'></a>1590 <em class='comment'>/*</em>
<a id='L1591' name='L1591'></a>1591 <em class='comment'> * Map the Core and Extended Oplock requesst bits down</em>
<a id='L1592' name='L1592'></a>1592 <em class='comment'> * to common bits (EXCLUSIVE_OPLOCK &amp; BATCH_OPLOCK).</em>
<a id='L1593' name='L1593'></a>1593 <em class='comment'> */</em>
<a id='L1594' name='L1594'></a>1594 
<a id='L1595' name='L1595'></a>1595 <em class='comment'>/*</em>
<a id='L1596' name='L1596'></a>1596 <em class='comment'> * Core protocol.</em>
<a id='L1597' name='L1597'></a>1597 <em class='comment'> */</em>
<a id='L1598' name='L1598'></a>1598 <em class='sharp'>#define</em> CORE_OPLOCK_REQUEST(<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>) \
<a id='L1599' name='L1599'></a>1599     ((<a href='../S/src--vfs--smbfs--helpers--include--byteorder.h.html#L120' title='Defined at 120 in src/vfs/smbfs/helpers/include/byteorder.h.'>CVAL</a>(<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>,<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L957' title='Defined at 957 in src/vfs/smbfs/helpers/include/smb.h.'>smb_flg</a>)&amp;(<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L991' title='Defined at 991 in src/vfs/smbfs/helpers/include/smb.h.'>FLAG_REQUEST_OPLOCK</a>|<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L992' title='Defined at 992 in src/vfs/smbfs/helpers/include/smb.h.'>FLAG_REQUEST_BATCH_OPLOCK</a>))&gt;&gt;5)
<a id='L1600' name='L1600'></a>1600 
<a id='L1601' name='L1601'></a>1601 <em class='comment'>/*</em>
<a id='L1602' name='L1602'></a>1602 <em class='comment'> * Extended protocol.</em>
<a id='L1603' name='L1603'></a>1603 <em class='comment'> */</em>
<a id='L1604' name='L1604'></a>1604 <em class='sharp'>#define</em> EXTENDED_OPLOCK_REQUEST(<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>) ((<a href='../D/SVAL.html' title='Multiple defined in 2 places.'>SVAL</a>(<a href='../Y/inbuf.html' title='Multiple used in 189 places.'>inbuf</a>,<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L968' title='Defined at 968 in src/vfs/smbfs/helpers/include/smb.h.'>smb_vwv2</a>)&amp;((1&lt;&lt;1)|(1&lt;&lt;2)))&gt;&gt;1)
<a id='L1605' name='L1605'></a>1605 
<a id='L1606' name='L1606'></a>1606 <em class='comment'>/* Lock types. */</em>
<a id='L1607' name='L1607'></a>1607 <em class='sharp'>#define</em> LOCKING_ANDX_SHARED_LOCK 0x1
<a id='L1608' name='L1608'></a>1608 <em class='sharp'>#define</em> LOCKING_ANDX_OPLOCK_RELEASE 0x2
<a id='L1609' name='L1609'></a>1609 <em class='sharp'>#define</em> LOCKING_ANDX_CHANGE_LOCKTYPE 0x4
<a id='L1610' name='L1610'></a>1610 <em class='sharp'>#define</em> LOCKING_ANDX_CANCEL_LOCK 0x8
<a id='L1611' name='L1611'></a>1611 <em class='sharp'>#define</em> LOCKING_ANDX_LARGE_FILES 0x10
<a id='L1612' name='L1612'></a>1612 
<a id='L1613' name='L1613'></a>1613 <em class='comment'>/* Oplock levels */</em>
<a id='L1614' name='L1614'></a>1614 <em class='sharp'>#define</em> OPLOCKLEVEL_NONE 0
<a id='L1615' name='L1615'></a>1615 <em class='sharp'>#define</em> OPLOCKLEVEL_II 1
<a id='L1616' name='L1616'></a>1616 
<a id='L1617' name='L1617'></a>1617 <em class='comment'>/*</em>
<a id='L1618' name='L1618'></a>1618 <em class='comment'> * Bits we test with.</em>
<a id='L1619' name='L1619'></a>1619 <em class='comment'> */</em>
<a id='L1620' name='L1620'></a>1620 <em class='sharp'>#define</em> EXCLUSIVE_OPLOCK 1
<a id='L1621' name='L1621'></a>1621 <em class='sharp'>#define</em> BATCH_OPLOCK 2
<a id='L1622' name='L1622'></a>1622 
<a id='L1623' name='L1623'></a>1623 <em class='sharp'>#define</em> CORE_OPLOCK_GRANTED (1&lt;&lt;5)
<a id='L1624' name='L1624'></a>1624 <em class='sharp'>#define</em> EXTENDED_OPLOCK_GRANTED (1&lt;&lt;15)
<a id='L1625' name='L1625'></a>1625 
<a id='L1626' name='L1626'></a>1626 <em class='comment'>/*</em>
<a id='L1627' name='L1627'></a>1627 <em class='comment'> * Loopback command offsets.</em>
<a id='L1628' name='L1628'></a>1628 <em class='comment'> */</em>
<a id='L1629' name='L1629'></a>1629 
<a id='L1630' name='L1630'></a>1630 <em class='sharp'>#define</em> OPBRK_CMD_LEN_OFFSET 0
<a id='L1631' name='L1631'></a>1631 <em class='sharp'>#define</em> OPBRK_CMD_PORT_OFFSET 4
<a id='L1632' name='L1632'></a>1632 <em class='sharp'>#define</em> OPBRK_CMD_HEADER_LEN 6
<a id='L1633' name='L1633'></a>1633 
<a id='L1634' name='L1634'></a>1634 <em class='sharp'>#define</em> OPBRK_MESSAGE_CMD_OFFSET 0
<a id='L1635' name='L1635'></a>1635 
<a id='L1636' name='L1636'></a>1636 <em class='comment'>/*</em>
<a id='L1637' name='L1637'></a>1637 <em class='comment'> * Oplock break command code to send over the udp socket.</em>
<a id='L1638' name='L1638'></a>1638 <em class='comment'> * </em>
<a id='L1639' name='L1639'></a>1639 <em class='comment'> * Form of this is :</em>
<a id='L1640' name='L1640'></a>1640 <em class='comment'> *</em>
<a id='L1641' name='L1641'></a>1641 <em class='comment'> *  0     2       6        10       14    14+devsize 14+devsize+inodesize</em>
<a id='L1642' name='L1642'></a>1642 <em class='comment'> *  +----+--------+--------+--------+-------+--------+</em>
<a id='L1643' name='L1643'></a>1643 <em class='comment'> *  | cmd| pid    | sec    | usec   | dev   |  inode |</em>
<a id='L1644' name='L1644'></a>1644 <em class='comment'> *  +----+--------+--------+--------+-------+--------+</em>
<a id='L1645' name='L1645'></a>1645 <em class='comment'> */</em>
<a id='L1646' name='L1646'></a>1646 
<a id='L1647' name='L1647'></a>1647 <em class='sharp'>#define</em> OPLOCK_BREAK_CMD 0x1
<a id='L1648' name='L1648'></a>1648 <em class='sharp'>#define</em> OPLOCK_BREAK_PID_OFFSET 2
<a id='L1649' name='L1649'></a>1649 <em class='sharp'>#define</em> OPLOCK_BREAK_SEC_OFFSET 6
<a id='L1650' name='L1650'></a>1650 <em class='sharp'>#define</em> OPLOCK_BREAK_USEC_OFFSET 10
<a id='L1651' name='L1651'></a>1651 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1652' title='Referred from 1652 in src/vfs/smbfs/helpers/include/smb.h.'>OPLOCK_BREAK_DEV_OFFSET</a> 14
<a id='L1652' name='L1652'></a>1652 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1653' title='Referred from 1653 in src/vfs/smbfs/helpers/include/smb.h.'>OPLOCK_BREAK_INODE_OFFSET</a> (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1651' title='Defined at 1651 in src/vfs/smbfs/helpers/include/smb.h.'>OPLOCK_BREAK_DEV_OFFSET</a> + <strong class='reserved'>sizeof</strong>(<a href='../S/src--vfs--smbfs--helpers--include--includes.h.html#L325' title='Defined at 325 in src/vfs/smbfs/helpers/include/includes.h.'>SMB_DEV_T</a>))
<a id='L1653' name='L1653'></a>1653 <em class='sharp'>#define</em> OPLOCK_BREAK_MSG_LEN (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1652' title='Defined at 1652 in src/vfs/smbfs/helpers/include/smb.h.'>OPLOCK_BREAK_INODE_OFFSET</a> + <strong class='reserved'>sizeof</strong>(<a href='../S/src--vfs--smbfs--helpers--include--includes.h.html#L333' title='Defined at 333 in src/vfs/smbfs/helpers/include/includes.h.'>SMB_INO_T</a>))
<a id='L1654' name='L1654'></a>1654 
<a id='L1655' name='L1655'></a>1655 <em class='comment'>/*</em>
<a id='L1656' name='L1656'></a>1656 <em class='comment'> * Capabilities abstracted for different systems.</em>
<a id='L1657' name='L1657'></a>1657 <em class='comment'> */</em>
<a id='L1658' name='L1658'></a>1658 
<a id='L1659' name='L1659'></a>1659 <em class='sharp'>#define</em> KERNEL_OPLOCK_CAPABILITY 0x1
<a id='L1660' name='L1660'></a>1660 
<a id='L1661' name='L1661'></a>1661 <em class='sharp'>#if</em> <strong class='reserved'>defined</strong>(HAVE_KERNEL_OPLOCKS)
<a id='L1662' name='L1662'></a>1662 <em class='comment'>/*</em>
<a id='L1663' name='L1663'></a>1663 <em class='comment'> * Oplock break command code sent via the kernel interface.</em>
<a id='L1664' name='L1664'></a>1664 <em class='comment'> *</em>
<a id='L1665' name='L1665'></a>1665 <em class='comment'> * Form of this is :</em>
<a id='L1666' name='L1666'></a>1666 <em class='comment'> *</em>
<a id='L1667' name='L1667'></a>1667 <em class='comment'> *  0     2       2+devsize 2+devsize+inodesize</em>
<a id='L1668' name='L1668'></a>1668 <em class='comment'> *  +----+--------+--------+</em>
<a id='L1669' name='L1669'></a>1669 <em class='comment'> *  | cmd| dev    |  inode |</em>
<a id='L1670' name='L1670'></a>1670 <em class='comment'> *  +----+--------+--------+</em>
<a id='L1671' name='L1671'></a>1671 <em class='comment'> */</em>
<a id='L1672' name='L1672'></a>1672 
<a id='L1673' name='L1673'></a>1673 <em class='sharp'>#define</em> KERNEL_OPLOCK_BREAK_CMD 0x2
<a id='L1674' name='L1674'></a>1674 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1675' title='Referred from 1675 in src/vfs/smbfs/helpers/include/smb.h.'>KERNEL_OPLOCK_BREAK_DEV_OFFSET</a> 2
<a id='L1675' name='L1675'></a>1675 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1676' title='Referred from 1676 in src/vfs/smbfs/helpers/include/smb.h.'>KERNEL_OPLOCK_BREAK_INODE_OFFSET</a> (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1674' title='Defined at 1674 in src/vfs/smbfs/helpers/include/smb.h.'>KERNEL_OPLOCK_BREAK_DEV_OFFSET</a> + <strong class='reserved'>sizeof</strong>(<a href='../S/src--vfs--smbfs--helpers--include--includes.h.html#L325' title='Defined at 325 in src/vfs/smbfs/helpers/include/includes.h.'>SMB_DEV_T</a>))
<a id='L1676' name='L1676'></a>1676 <em class='sharp'>#define</em> KERNEL_OPLOCK_BREAK_MSG_LEN (<a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1675' title='Defined at 1675 in src/vfs/smbfs/helpers/include/smb.h.'>KERNEL_OPLOCK_BREAK_INODE_OFFSET</a> + <strong class='reserved'>sizeof</strong>(<a href='../S/src--vfs--smbfs--helpers--include--includes.h.html#L333' title='Defined at 333 in src/vfs/smbfs/helpers/include/includes.h.'>SMB_INO_T</a>))
<a id='L1677' name='L1677'></a>1677 
<a id='L1678' name='L1678'></a>1678 <em class='sharp'>#endif</em> <em class='comment'>/* HAVE_KERNEL_OPLOCKS */</em>
<a id='L1679' name='L1679'></a>1679 
<a id='L1680' name='L1680'></a>1680 <em class='sharp'>#define</em> CMD_REPLY 0x8000
<a id='L1681' name='L1681'></a>1681 
<a id='L1682' name='L1682'></a>1682 <em class='comment'>/* useful macros */</em>
<a id='L1683' name='L1683'></a>1683 
<a id='L1684' name='L1684'></a>1684 <em class='comment'>/* zero a structure */</em>
<a id='L1685' name='L1685'></a>1685 <em class='sharp'>#define</em> ZERO_STRUCT(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) <a href='../Y/memset.html' title='Multiple used in 162 places.'>memset</a>((<strong class='reserved'>char</strong> *)&amp;(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>), 0, <strong class='reserved'>sizeof</strong>(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>))
<a id='L1686' name='L1686'></a>1686 
<a id='L1687' name='L1687'></a>1687 <em class='comment'>/* zero a structure given a pointer to the structure - no zero check */</em>
<a id='L1688' name='L1688'></a>1688 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1691' title='Referred from 1691 in src/vfs/smbfs/helpers/include/smb.h.'>ZERO_STRUCTPN</a>(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) <a href='../Y/memset.html' title='Multiple used in 162 places.'>memset</a>((<strong class='reserved'>char</strong> *)(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>), 0, <strong class='reserved'>sizeof</strong>(*(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>)))
<a id='L1689' name='L1689'></a>1689 
<a id='L1690' name='L1690'></a>1690 <em class='comment'>/* zero a structure given a pointer to the structure */</em>
<a id='L1691' name='L1691'></a>1691 <em class='sharp'>#define</em> <a href='../R/ZERO_STRUCTP.html' title='Multiple referred from 2 places.'>ZERO_STRUCTP</a>(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) <em class='brace'>{</em> <strong class='reserved'>if</strong> ((<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) != <a href='../Y/NULL.html' title='Multiple used in 5646 places.'>NULL</a>) <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1688' title='Defined at 1688 in src/vfs/smbfs/helpers/include/smb.h.'>ZERO_STRUCTPN</a>(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>); <em class='brace'>}</em>
<a id='L1692' name='L1692'></a>1692 
<a id='L1693' name='L1693'></a>1693 <em class='comment'>/* zero an array - note that sizeof(array) must work - ie. it must not be a </em>
<a id='L1694' name='L1694'></a>1694 <em class='comment'>   pointer */</em>
<a id='L1695' name='L1695'></a>1695 <em class='sharp'>#define</em> ZERO_ARRAY(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>) <a href='../Y/memset.html' title='Multiple used in 162 places.'>memset</a>((<strong class='reserved'>char</strong> *)(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>), 0, <strong class='reserved'>sizeof</strong>(<a href='../Y/x.html' title='Multiple used in 769 places.'>x</a>))
<a id='L1696' name='L1696'></a>1696 
<a id='L1697' name='L1697'></a>1697 <em class='sharp'>#define</em> <a href='../R/SMB_ASSERT.html' title='Multiple referred from 3 places.'>SMB_ASSERT</a>(<a href='../Y/b.html' title='Multiple used in 443 places.'>b</a>) ((<a href='../Y/b.html' title='Multiple used in 443 places.'>b</a>)?(<strong class='reserved'>void</strong>)0: \
<a id='L1698' name='L1698'></a>1698         (<a href='../D/DEBUG.html' title='Multiple defined in 2 places.'>DEBUG</a>(0,("PANIC: assert failed at %s(%d)\n", \
<a id='L1699' name='L1699'></a>1699                  <a href='../Y/__FILE__.html' title='Multiple used in 7 places.'>__FILE__</a>, <a href='../Y/__LINE__.html' title='Multiple used in 8 places.'>__LINE__</a>)), <a href='../S/src--vfs--smbfs--helpers--lib--util.c.html#L2547' title='Defined at 2547 in src/vfs/smbfs/helpers/lib/util.c.'>smb_panic</a>("assert failed")))
<a id='L1700' name='L1700'></a>1700 <em class='sharp'>#define</em> SMB_ASSERT_ARRAY(<a href='../Y/a.html' title='Multiple used in 340 places.'>a</a>,<a href='../Y/n.html' title='Multiple used in 370 places.'>n</a>) <a href='../S/src--vfs--smbfs--helpers--include--smb.h.html#L1697' title='Defined at 1697 in src/vfs/smbfs/helpers/include/smb.h.'>SMB_ASSERT</a>((<strong class='reserved'>sizeof</strong>(<a href='../Y/a.html' title='Multiple used in 340 places.'>a</a>)/<strong class='reserved'>sizeof</strong>((<a href='../Y/a.html' title='Multiple used in 340 places.'>a</a>)[0])) &gt;= (<a href='../Y/n.html' title='Multiple used in 370 places.'>n</a>))
<a id='L1701' name='L1701'></a>1701 
<a id='L1702' name='L1702'></a>1702 <em class='comment'>/* A netbios name structure. */</em>
<a id='L1703' name='L1703'></a>1703 <strong class='reserved'>struct</strong> <a href='../R/nmb_name.html' title='Multiple referred from 31 places.'>nmb_name</a>
<a id='L1704' name='L1704'></a>1704 <em class='brace'>{</em>
<a id='L1705' name='L1705'></a>1705     <strong class='reserved'>char</strong> <a href='../Y/name.html' title='Multiple used in 736 places.'>name</a>[17];
<a id='L1706' name='L1706'></a>1706     <strong class='reserved'>char</strong> <a href='../Y/scope.html' title='Multiple used in 14 places.'>scope</a>[64];
<a id='L1707' name='L1707'></a>1707     <strong class='reserved'>unsigned</strong> <strong class='reserved'>int</strong> <a href='../Y/name_type.html' title='Multiple used in 38 places.'>name_type</a>;
<a id='L1708' name='L1708'></a>1708 <em class='brace'>}</em>;
<a id='L1709' name='L1709'></a>1709 
<a id='L1710' name='L1710'></a>1710 <em class='sharp'>#include</em> "<a href='src--vfs--smbfs--helpers--include--client.h.html'>client.h</a>"
<a id='L1711' name='L1711'></a>1711 
<a id='L1712' name='L1712'></a>1712 <em class='comment'>/*</em>
<a id='L1713' name='L1713'></a>1713 <em class='comment'> * Size of new password account encoding string. DO NOT CHANGE.</em>
<a id='L1714' name='L1714'></a>1714 <em class='comment'> */</em>
<a id='L1715' name='L1715'></a>1715 
<a id='L1716' name='L1716'></a>1716 <em class='sharp'>#define</em> NEW_PW_FORMAT_SPACE_PADDED_LEN 14
<a id='L1717' name='L1717'></a>1717 
<a id='L1718' name='L1718'></a>1718 <em class='comment'>/*</em>
<a id='L1719' name='L1719'></a>1719 <em class='comment'>   Do you want session setups at user level security with a invalid</em>
<a id='L1720' name='L1720'></a>1720 <em class='comment'>   password to be rejected or allowed in as guest? WinNT rejects them</em>
<a id='L1721' name='L1721'></a>1721 <em class='comment'>   but it can be a pain as it means "net view" needs to use a password</em>
<a id='L1722' name='L1722'></a>1722 <em class='comment'></em>
<a id='L1723' name='L1723'></a>1723 <em class='comment'>   You have 3 choices in the setting of map_to_guest:</em>
<a id='L1724' name='L1724'></a>1724 <em class='comment'></em>
<a id='L1725' name='L1725'></a>1725 <em class='comment'>   "NEVER_MAP_TO_GUEST" means session setups with an invalid password</em>
<a id='L1726' name='L1726'></a>1726 <em class='comment'>   are rejected. This is the default.</em>
<a id='L1727' name='L1727'></a>1727 <em class='comment'></em>
<a id='L1728' name='L1728'></a>1728 <em class='comment'>   "MAP_TO_GUEST_ON_BAD_USER" means session setups with an invalid password</em>
<a id='L1729' name='L1729'></a>1729 <em class='comment'>   are rejected, unless the username does not exist, in which case it</em>
<a id='L1730' name='L1730'></a>1730 <em class='comment'>   is treated as a guest login</em>
<a id='L1731' name='L1731'></a>1731 <em class='comment'></em>
<a id='L1732' name='L1732'></a>1732 <em class='comment'>   "MAP_TO_GUEST_ON_BAD_PASSWORD" means session setups with an invalid password</em>
<a id='L1733' name='L1733'></a>1733 <em class='comment'>   are treated as a guest login</em>
<a id='L1734' name='L1734'></a>1734 <em class='comment'></em>
<a id='L1735' name='L1735'></a>1735 <em class='comment'>   Note that map_to_guest only has an effect in user or server</em>
<a id='L1736' name='L1736'></a>1736 <em class='comment'>   level security.</em>
<a id='L1737' name='L1737'></a>1737 <em class='comment'> */</em>
<a id='L1738' name='L1738'></a>1738 
<a id='L1739' name='L1739'></a>1739 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--param--loadparm.c.html#L530' title='Referred from 530 in src/vfs/smbfs/helpers/param/loadparm.c.'>NEVER_MAP_TO_GUEST</a> 0
<a id='L1740' name='L1740'></a>1740 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--param--loadparm.c.html#L531' title='Referred from 531 in src/vfs/smbfs/helpers/param/loadparm.c.'>MAP_TO_GUEST_ON_BAD_USER</a> 1
<a id='L1741' name='L1741'></a>1741 <em class='sharp'>#define</em> <a href='../S/src--vfs--smbfs--helpers--param--loadparm.c.html#L532' title='Referred from 532 in src/vfs/smbfs/helpers/param/loadparm.c.'>MAP_TO_GUEST_ON_BAD_PASSWORD</a> 2
<a id='L1742' name='L1742'></a>1742 
<a id='L1743' name='L1743'></a>1743 <em class='sharp'>#endif</em> <em class='comment'>/* _SMB_H */</em>
<a id='L1744' name='L1744'></a>1744 
<a id='L1745' name='L1745'></a>1745 <em class='comment'>/* _SMB_H */</em>
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><img class='icon' src='../icons/n_first.png' alt='[first]' /><img class='icon' src='../icons/n_last.png' alt='[last]' /><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><img class='icon' src='../icons/n_bottom.png' alt='[bottom]' /><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+1745 src/vfs/smbfs/helpers/include/smb.h'  /> */</em>
</body>
</html>
